-
-
Notifications
You must be signed in to change notification settings - Fork 991
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
Error message uses absolute path #3777
Comments
I believe it was intentional that they used |
Error messages really shouldn't ever print an absolute path since it could leak the user's login name. |
Some more 20181231 17:17:15 error config: error reading usermade add-on 'C:\Users\Ravana\Documents\My Games\Wesnoth1.14/data/add-ons/Ageless_Era/_main.cfg' |
I don't understand why this is a problem. Errors should usually be verbose to make debugging easier, and they aren't sent to wesnothd or anything, only to the log file, so who exactly are we censoring them from? |
I believe it is in case some people use their real name as username. |
People paste log messages in error reports. Some people don't take care to ensure their username isn't in the log. Some people might not care, but we shouldn't create opportunities for people to accidentally include their username (which could be their real name) in a report. For WML files, the WML-visible path (ie, relative to the data folder or the addons folder) is entirely sufficient to track down the offending file, so there's no need to give any more info than that. For assets (which includes translations), it's a bit more tricky since they're drawn from all over the place; you'd probably need to do some sort of sanitization similar to what I did in the report command-line option (the option that prints out all the versions of dependent libraries and stuff). |
This line prints the absolute path. Usually error messages don't do that.
wesnoth/src/sound.cpp
Line 714 in 550c686
What does
track.file_path()
need to be replaced with?The text was updated successfully, but these errors were encountered: