Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing file and library mode #5359

Closed
rgugliel opened this issue Feb 13, 2019 · 4 comments
Closed

Missing file and library mode #5359

rgugliel opened this issue Feb 13, 2019 · 4 comments
Labels

Comments

@rgugliel
Copy link
Contributor

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

@danpat
Copy link
Member

danpat commented Feb 13, 2019

@rgugliel Not a bad idea.

In order to not break ABI compatibility, we'll want to add a new function here - the return type isn't included in function resolution (see https://en.cppreference.com/w/cpp/language/adl).

My suggestion would be to add a new method called vector&<string> GetMissingFiles() - this could be after IsValid() returns false, and the error message could be augmented if the list is non-empty.

@rgugliel
Copy link
Contributor Author

OK; will do, thanks.

@rgugliel
Copy link
Contributor Author

#5360

Copy link

github-actions bot commented Jul 8, 2024

This issue seems to be stale. It will be closed in 30 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Jul 8, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants