Skip to content

Commit

Permalink
send the correct error
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLudd committed Feb 7, 2020
1 parent 6279265 commit 1c6afe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/find-module.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tryFind = (base, fileName, callers) ->
try
findModule(base, fileName, callers)
catch e2
throw new CouldNotLoad base, fileName, callers, e2
throw new CouldNotLoad base, fileName, callers, e
else
instance: {}
path: makePath base, fileName, callers
Expand Down

0 comments on commit 1c6afe5

Please sign in to comment.