-
Notifications
You must be signed in to change notification settings - Fork 108
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
opt: continue to load dictionaries when some dictionaries throw exception. #2180
Conversation
@@ -228,8 +232,6 @@ void loadDictionaries( QWidget * parent, | |||
QMessageBox::critical( parent, | |||
QCoreApplication::translate( "LoadDictionaries", "Error loading dictionaries" ), | |||
QString::fromUtf8( loadDicts.getExceptionText().c_str() ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here should show all errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not want to change too much code. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error handling should be religious, and silently ignoring errors is sinful 😅.
I think this only need to append the original exceptionText to a QStringList, then call QStringList::join('\n') here.
BTW, I think there should be a systematical way to report dict errors and warnings back to users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be left from another PR.
|
No description provided.