Skip to content

Commit cf885d8

Browse files
wip(core): enhance error message
1 parent 442a097 commit cf885d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export function createModule(refPath : string, source : string, options : Option
307307
if ( id in moduleCache )
308308
return moduleCache[id];
309309

310-
throw new Error(`${ id } not found in moduleCache`);
310+
throw new Error(`require(${ JSON.stringify(id) }) failed. module not found in moduleCache`);
311311
}
312312

313313
const importFunction = async function(relPath : string) {

0 commit comments

Comments
 (0)