summaryrefslogtreecommitdiff
path: root/libssh2/libssh2_wrap.h
diff options
context:
space:
mode:
Diffstat (limited to 'libssh2/libssh2_wrap.h')
-rw-r--r--libssh2/libssh2_wrap.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libssh2/libssh2_wrap.h b/libssh2/libssh2_wrap.h
index 37a62a24..98b73af2 100644
--- a/libssh2/libssh2_wrap.h
+++ b/libssh2/libssh2_wrap.h
@@ -174,8 +174,10 @@ std::wstring formatSshStatusCode(int sc)
ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_KNOWN_HOSTS);
ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_CHANNEL_WINDOW_FULL);
ZEN_CHECK_CASE_FOR_CONSTANT(LIBSSH2_ERROR_KEYFILE_AUTH_FAILED);
+
+ default:
+ return replaceCpy<std::wstring>(L"SSH status %x", L"%x", numberTo<std::wstring>(sc));
}
- return replaceCpy<std::wstring>(L"SSH status %x.", L"%x", numberTo<std::wstring>(sc));
}
@@ -219,7 +221,7 @@ std::wstring formatSftpStatusCode(unsigned long sc)
case 30: return L"SSH_FX_GROUP_INVALID";
case 31: return L"SSH_FX_NO_MATCHING_BYTE_RANGE_LOCK";
- default: return replaceCpy<std::wstring>(L"SFTP status %x.", L"%x", numberTo<std::wstring>(sc));
+ default: return replaceCpy<std::wstring>(L"SFTP status %x", L"%x", numberTo<std::wstring>(sc));
//*INDENT-ON*
}
}
bgstack15