1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

[fix] revert runtime.ts

This commit is contained in:
monkingxue 2018-06-08 00:22:28 +08:00
parent 53cbcb8f25
commit 30cd357032

View file

@ -150,7 +150,8 @@ export function resolveModule(
try {
fetchResponse = os.codeFetch(moduleSpecifier, containingFile);
} catch (e) {
throw Error(`Cannot find module '${containingFile}${moduleSpecifier}'`);
// TODO Only catch "no such file or directory" errors. Need error codes.
return null;
}
const { filename, sourceCode, outputCode } = fetchResponse;
if (sourceCode.length === 0) {