Improved error reporting
This commit is contained in:
parent
6cf7b52453
commit
457b09f15c
12 changed files with 110 additions and 94 deletions
|
|
@ -118,6 +118,14 @@ void DatabaseWindow::setConfig(const ConnectionConfig &config)
|
|||
if (qthis)
|
||||
qthis.data()->catalogLoaded(db);
|
||||
}
|
||||
).onFailed(qApp, [qthis](OpenDatabaseException &ex)
|
||||
{
|
||||
if (qthis) {
|
||||
QMessageBox::critical(qthis.data(), "Error reading database",
|
||||
ex.text());
|
||||
qthis.data()->close();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue