Merge pull request #2218 from hagau/fix_error_handling_algo
Fix error handling in case of an unsupported algorithm parameter in
This commit is contained in:
@@ -273,8 +273,8 @@ public class SshAuthenticationService extends Service {
|
|||||||
return createExceptionErrorResult(SshAuthenticationApiError.NO_AUTH_KEY,
|
return createExceptionErrorResult(SshAuthenticationApiError.NO_AUTH_KEY,
|
||||||
"Authentication key for master key id not found in keychain", e);
|
"Authentication key for master key id not found in keychain", e);
|
||||||
} catch (NoSuchAlgorithmException e) {
|
} catch (NoSuchAlgorithmException e) {
|
||||||
return createExceptionErrorResult(SshAuthenticationApi.RESULT_CODE_ERROR,
|
return createExceptionErrorResult(SshAuthenticationApiError.INVALID_ALGORITHM,
|
||||||
"", e);
|
"Algorithm not supported", e);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return createErrorResult(SshAuthenticationApiError.NO_KEY_ID,
|
return createErrorResult(SshAuthenticationApiError.NO_KEY_ID,
|
||||||
|
|||||||
Reference in New Issue
Block a user