Skip to content

Missing file and library mode #5359

@rgugliel

Description

@rgugliel

Hello,
When you start the web server with osrm-routed and a file is missing, then you get a precise information (via Log::Warning)

However, when you use the libosrm, then you get only the general message:

"Required files are missing, cannot continue.  Have all the "
                              "pre-processing steps been run?"

and you don't know which file is missing.

I'm wondering it could be worth file to change

bool IOConfig::IsValid()

to something like

bool IOConfig::IsValid(vector&<string> missingFiles)

(or equivalently, change the return type of the IsValid method). That way, we could add that to the exception text that is thrown by OSRM.

What do you think?

If you think the idea is fine, I'll try to do it and open a PR.

Thanks.

Rafael

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions