forked from qt-creator/qt-creator
Maemo: Catch Botan exceptions.
Task-number: TOOLS-297
This commit is contained in:
@@ -41,6 +41,8 @@
|
||||
|
||||
#include "maemosshthread.h"
|
||||
|
||||
#include <exception>
|
||||
|
||||
namespace Qt4ProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
@@ -62,6 +64,10 @@ void MaemoSshThread::run()
|
||||
runInternal();
|
||||
} catch (const MaemoSshException &e) {
|
||||
m_error = e.error();
|
||||
} catch (const std::exception &e) {
|
||||
// Should in theory not be necessary, but Net7 leaks Botan exceptions.
|
||||
m_error = tr("Error in cryptography backend: ")
|
||||
+ QLatin1String(e.what());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user