diff options
-rw-r--r-- | script/cli/check.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/script/cli/check.lua b/script/cli/check.lua index da55b658..3902c4aa 100644 --- a/script/cli/check.lua +++ b/script/cli/check.lua @@ -1,4 +1,4 @@ -local lclient = require 'lclient' +local lclient = require 'lclient'() local furi = require 'file-uri' local ws = require 'workspace' local files = require 'files' @@ -41,8 +41,14 @@ util.enableCloseFunction() local lastClock = os.clock() local results = {} + +local function errorhandler(err) + print(err) + print(debug.traceback()) +end + ---@async -lclient():start(function (client) +xpcall(lclient.start, errorhandler, lclient, function (client) client:registerFakers() client:initialize { |