-
Notifications
You must be signed in to change notification settings - Fork 2
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
Invalid config file gets replaced by default #36
Comments
the config.json file only get replaced if the key 'defaultDownloadPath' can not be found. |
The file is always replaced if the json is invalid. Not a big issue but irritating if I don't have a backup of the original config since any small typo will erase my data. |
Ich habe dies jetzt mal as bug hochgestuft. Ich habe gerade über eine halbe Stunde am Telefon verbracht, weil ich einer Kollegin helfen wollte, die Probleme mit der Konfiguration hatte. Irgendwo in der config.json war ein Fehler - wir wussten aber nicht wo. Nach jedem erfolglosen Korrekturversuch wurde unsere config.json durch die Defaultversion ersetzt sodass wir wieder unsere Version ins Verzeichnis kopieren mussten. Zusätzlich tauchen dann immer auch die default Formate auf, und das Programm beschwert sich wegen fehlender Drucker... Ich möchte sehr darum bitten, dass die config.json nur dann überschrieben wird, wenn die Datei gar nicht existiert. Andernfalls sollte das Programm einfach mit einer möglichst hilfreichen Fehlermeldung abbrechen. |
Much better now! Personally I would prefer to just have the error message and maybe an option in that dialogue to create a clean config file - otherwise I have to rename the file in addition to fixing my type. (e.g. "Error in config.json. Do you want to create a clean sample config file? The current file will be saved as config_invalid.json" YES / NO). But that's a minor thing. Issue can be closed. |
Thank you for your feedback. |
The dialogue is good now. I wanted to keep the original config.json because in the case of an error I have to rename the file back to config.json in addition to fixing my error. But that would be a rare event in normal life since one would not continually mess around with config.json as I was doing during testing. So I will close this issue as it is really not that important and I can live fine with the current solution. Thanks! |
level: high
If the config.json file is invalid (due to an editing error) it gets replaced by the default config without any warning. This should not happen! Instead the Program should quit with an appropriate error message (preferably giving a hint about what is wrong with the file).
The text was updated successfully, but these errors were encountered: