aboutsummaryrefslogtreecommitdiff
path: root/error_handling.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-08 16:35:32 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-08 16:35:51 -0800
commit1d2bd858fd7479bc672bc0e1be77f30c63f85b0c (patch)
treebc0261091bd95f59f48b3a67eaa21d5e55eb752a /error_handling.lua
parentfc1655e028a93290f5d6a6e99cec56fa9dbaf0bb (diff)
Made the source mapping optional (and disabled with -O2+)
Diffstat (limited to 'error_handling.lua')
-rw-r--r--error_handling.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/error_handling.lua b/error_handling.lua
index ba3389a..76b4390 100644
--- a/error_handling.lua
+++ b/error_handling.lua
@@ -103,7 +103,7 @@ print_error = function(error_message, start_fn, stop_fn)
end
local line = nil
do
- local map = SOURCE_MAP[calling_fn.source]
+ local map = SOURCE_MAP and SOURCE_MAP[calling_fn.source]
if map then
if calling_fn.currentline then
calling_fn.currentline = assert(map[calling_fn.currentline])