SSH: Print more helpful error message on key decoding error.

The botan exception string doesn't help anybody.

Change-Id: I81b8b837b0cf3406a8293cbf85b8fd1bff9bfa74
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christian Kandeler
2011-12-07 17:08:08 +01:00
committed by hjk
parent c2cfceb6b2
commit 16ad21be9d
3 changed files with 101 additions and 94 deletions

View File

@@ -640,11 +640,6 @@ void SshConnectionPrivate::connectToHost()
m_errorString = ex.errorString;
emit error(m_error);
return;
} catch (const Botan::Exception &ex) {
m_error = SshKeyFileError;
m_errorString = QString::fromAscii(ex.what());
emit error(m_error);
return;
}
connect(m_socket, SIGNAL(connected()), this, SLOT(handleSocketConnected()));