[cleanup] slow catchs

This commit is contained in:
DuckSoft 2020-04-28 08:03:00 +08:00 committed by GitHub
parent 83ade3638a
commit cdb920e9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ void RouteSettingsMatrixWidget::on_importSchemeBtn_clicked()
// done // done
LOG(MODULE_SETTINGS, "Imported route config: " + scheme.name + " by: " + scheme.author) LOG(MODULE_SETTINGS, "Imported route config: " + scheme.name + " by: " + scheme.author)
} }
catch (exception e) catch (exception &e)
{ {
LOG(MODULE_UI, "Exception: " + QString(e.what())) LOG(MODULE_UI, "Exception: " + QString(e.what()))
// TODO: Give some error as Notification // TODO: Give some error as Notification
@ -181,7 +181,7 @@ void RouteSettingsMatrixWidget::on_exportSchemeBtn_clicked()
// TODO: Give some success as Notification // TODO: Give some success as Notification
QvMessageBoxInfo(this, dialogTitle, tr("Your route scheme has been successfully exported!")); QvMessageBoxInfo(this, dialogTitle, tr("Your route scheme has been successfully exported!"));
} }
catch (exception) catch (exception &)
{ {
// TODO: Give some error as Notification // TODO: Give some error as Notification