Skip to content

No line numbers in Lua runtime errors #6563

@mattwigway

Description

@mattwigway

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions