defect 4151:restapi: add error message if using incorrect authorize keys/passwd

This commit is contained in:
daniceexi 2014-06-03 07:29:47 -04:00
parent b78515b8bc
commit 1925650c96

View File

@ -2339,7 +2339,7 @@ sub filterData {
foreach my $msg (@{$_->{error}}) {
if ($msg =~ /(Permission denied|Authentication failure)/) {
# return 401 Unauthorized
sendResponseMsg($STATUS_UNAUTH);
error("Authentication failure", $STATUS_UNAUTH);
} else {
push @{$outputerror->{error}}, $msg;
}