mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
make error message from loader more useful
This commit is contained in:
parent
fdfd314ebc
commit
1a776e30e0
@ -30,7 +30,8 @@ with_dev = (fn) ->
|
||||
mod\match("moon%.") or mod == "moon"
|
||||
|
||||
if testable
|
||||
dev_cache[mod] = assert(loadfile(assert loader mod))!
|
||||
fname = assert loader(mod), "failed to find module: #{mod}"
|
||||
dev_cache[mod] = assert(loadfile fname)!
|
||||
return dev_cache[mod]
|
||||
|
||||
old_require mod
|
||||
|
Loading…
Reference in New Issue
Block a user