fixed? locator

This commit is contained in:
Paul Liverman III 2018-02-23 04:47:32 -08:00
parent e9d2d03d61
commit 26c5fae9c4

View File

@ -5,7 +5,7 @@ import insert, sort from table
-- require, but only errors when a module errors during loading
check_require = (path) ->
ok, value = pcall -> require path
if ok or ("string" == type(value) and 1 == value\find "module '#{path}' not found")
if ok or ("string" == type(value) and value\find "module '#{path}' not found")
return ok, value
else
error value