Skip to content

Commit 9d56aae

Browse files
committed
strip backtrace on parsing error
Before this patch we throw an error with backtrace: ``` /opt/cartridge/.rocks/share/tarantool/graphql/parse.lua:6: 4.3: syntax error, unexpected } ``` Actually seems we don't need it. Let's stip it.
1 parent 681453d commit 9d56aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql/parse.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local luagraphqlparser = require('luagraphqlparser')
33
local function parse(s)
44
local ast, err = luagraphqlparser.parse(s)
55
if err ~= nil then
6-
error(err)
6+
error(err, 0)
77
end
88
return ast
99
end

0 commit comments

Comments
 (0)