-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
Description
Feature
When a runtime error occurs in a Lua profile script, OSRM exits with a message that says what the error was, but not a traceback or a line number, e.g.
$ osrm-extract -p ../profiles/bicycle_lts.lua bicycle_lts/bicycle_lts.osm.pbf
[lots of intermediate output]
libc++abi: terminating with uncaught exception of type sol::error: lua: error: attempt to compare two nil values
It would make debugging profiles much easier if there were a traceback and line number. I have a patch for this, will submit PR shortly.
This is related to #3084, but I think it's not a duplicate as the discussion there focuses on syntax errors, which in the latest OSRM already display line numbers.