diff options
Diffstat (limited to 'src/frontend/btmoduleindexdialog.cpp')
-rw-r--r-- | src/frontend/btmoduleindexdialog.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/frontend/btmoduleindexdialog.cpp b/src/frontend/btmoduleindexdialog.cpp index 8b70541..370ce42 100644 --- a/src/frontend/btmoduleindexdialog.cpp +++ b/src/frontend/btmoduleindexdialog.cpp @@ -64,10 +64,19 @@ bool BtModuleIndexDialog::indexAllModulesPrivate(const QList<CSwordModuleInfo*> try { m->buildIndex(); } catch (...) { + QString msg; + try { + throw; + } catch (std::exception const & e) { + msg = e.what(); + } catch (...) { + msg = tr("<UNKNOWN EXCEPTION>"); + } + message::showWarning(this, tr("Indexing aborted"), tr("An internal error occurred while building " - "the index.")); + "the index.") + "<br/><br/>" + msg); success = false; } |