From 1925650c96695b04587728b8c6fe345e63da6081 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 3 Jun 2014 07:29:47 -0400 Subject: [PATCH] defect 4151:restapi: add error message if using incorrect authorize keys/passwd --- xCAT-server/xCAT-wsapi/xcatws.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/xCAT-wsapi/xcatws.cgi b/xCAT-server/xCAT-wsapi/xcatws.cgi index b088bee6c..17cd8faa2 100755 --- a/xCAT-server/xCAT-wsapi/xcatws.cgi +++ b/xCAT-server/xCAT-wsapi/xcatws.cgi @@ -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; }