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:
parent
53cbcb8f25
commit
30cd357032
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue