mirror of
https://github.com/lazuscripts/locator.git
synced 2024-11-19 10:54:24 +00:00
fixed? locator
This commit is contained in:
parent
e9d2d03d61
commit
26c5fae9c4
@ -5,7 +5,7 @@ import insert, sort from table
|
|||||||
-- require, but only errors when a module errors during loading
|
-- require, but only errors when a module errors during loading
|
||||||
check_require = (path) ->
|
check_require = (path) ->
|
||||||
ok, value = pcall -> 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
|
return ok, value
|
||||||
else
|
else
|
||||||
error value
|
error value
|
||||||
|
Loading…
Reference in New Issue
Block a user