aboutsummaryrefslogtreecommitdiff
path: root/data/core
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2025-06-27 15:51:01 -0400
committerAdam Harrison <adamdharrison@gmail.com>2025-06-27 15:51:01 -0400
commitbc77de8c754344d62ff1bb2d991672470c676d92 (patch)
tree26496dce0f5b8d0dd0fbfc02d9579015dbc50cbb /data/core
parentcc823e6c2792d2f802a84ac101f44edd1747e2e7 (diff)
downloadlite-xl-PR/clarify-stack-traces-for-require.tar.gz
lite-xl-PR/clarify-stack-traces-for-require.zip
Fixed explicit passing of levels.PR/clarify-stack-traces-for-require
Diffstat (limited to 'data/core')
-rw-r--r--data/core/start.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/core/start.lua b/data/core/start.lua
index a7bd2d69..fa7aef44 100644
--- a/data/core/start.lua
+++ b/data/core/start.lua
@@ -53,7 +53,7 @@ error = {
new = function(str, level) return getmetatable(str) == error and str or setmetatable({ message = str, stack = debug.traceback(nil, (level or 1) + 1) }, error) end,
__tostring = function(self) return self.message end,
__call = function(self, str, level)
- error.throw(error.new(str, level or 2), level or 2)
+ error.throw(error.new(str, (level or 1) + 1), (level or 1) + 1)
end
}
setmetatable(error, error)