You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by na...@apache.org on 2005/12/27 21:47:04 UTC

svn commit: r359277 - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocSSL1Client.cpp

Author: nadiramra
Date: Tue Dec 27 12:47:00 2005
New Revision: 359277

URL: http://svn.apache.org/viewcvs?rev=359277&view=rev
Log:
Make error message consistent with what is expected. 
On OS/400, the error message is different.

Modified:
    webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocSSL1Client.cpp

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocSSL1Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocSSL1Client.cpp?rev=359277&r1=359276&r2=359277&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocSSL1Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocSSL1Client.cpp Tue Dec 27 12:47:00 2005
@@ -86,7 +86,18 @@
 
             if( !bSilent)
 			{
+				// Since OS400 error message is different, ensure that
+				// correct error message is returned and then return 
+				// what is expected to match verification file.
+#ifdef __OS400__
+                char *errorText = (char *)e.what();
+                if (strstr(errorText, "GSKit Error 408") != NULL)
+                   cout << "Exception : " << " (GSKit Error 408 - GSK_ERROR_BAD_KEYFILE_PASSWORD)" << endl;
+                else
+                   cout << "Exception : " << e.what() << endl;
+#else
 				cout << "Exception : " << e.what() << endl;
+#endif
 			}
         }
         catch(exception& e)