Maemo: Catch Botan exceptions.

Task-number: TOOLS-297
This commit is contained in:
ck
2010-02-24 16:15:44 +01:00
parent b7650d343e
commit 3a028c097a

View File

@@ -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());
}
}