mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
show file in error message in moon loader
This commit is contained in:
parent
6307c6a9c1
commit
727fe0eb1c
@ -62,7 +62,7 @@ moon_loader = function(name)
|
||||
file:close()
|
||||
local res, err = loadstring(text, file_path)
|
||||
if not res then
|
||||
error(err)
|
||||
error(file_path .. ": " .. err)
|
||||
end
|
||||
return res
|
||||
end
|
||||
|
@ -48,7 +48,7 @@ moon_loader = (name) ->
|
||||
file\close!
|
||||
res, err = loadstring text, file_path
|
||||
if not res
|
||||
error err
|
||||
error file_path .. ": " .. err
|
||||
|
||||
return res
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user