mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Unify custom exceptions
This commit is contained in:
parent
89cedd411e
commit
9565b695ef
13 changed files with 43 additions and 57 deletions
|
@ -638,7 +638,7 @@ int Application::exec(const QStringList ¶ms)
|
|||
catch (const RuntimeError &err)
|
||||
{
|
||||
#ifdef DISABLE_GUI
|
||||
fprintf(stderr, "%s", err.what());
|
||||
fprintf(stderr, "%s", qPrintable(err.message()));
|
||||
#else
|
||||
QMessageBox msgBox;
|
||||
msgBox.setIcon(QMessageBox::Critical);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue