We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b376cf0 commit 50a6ac1Copy full SHA for 50a6ac1
scm.lua
@@ -2,7 +2,16 @@
2
local scm = {}
3
4
function scm:load(name)
5
- return require(name)
+ local success, result = pcall(function()
6
+ return require(name)
7
+ end)
8
+ if success then
9
+ return result
10
+ else
11
+ print(debug.traceback("Error while loading Module: " .. name))
12
+ error(result)
13
+ end
14
+
15
end
16
17
0 commit comments