From 26c5fae9c415428c7cd61562e936583ed76e802d Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Fri, 23 Feb 2018 04:47:32 -0800 Subject: [PATCH] fixed? locator --- init.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.moon b/init.moon index cc18815..6ff26b9 100644 --- a/init.moon +++ b/init.moon @@ -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