[Box Backup-commit] COMMIT r3070 - box/trunk/infrastructure

subversion at boxbackup.org subversion at boxbackup.org
Sun Jan 22 19:37:13 GMT 2012


Author: chris
Date: 2012-01-22 19:37:13 +0000 (Sun, 22 Jan 2012)
New Revision: 3070

Modified:
   box/trunk/infrastructure/buildenv-testmain-template.cpp
Log:
Print the message of the exception that caused a test to fail.


Modified: box/trunk/infrastructure/buildenv-testmain-template.cpp
===================================================================
--- box/trunk/infrastructure/buildenv-testmain-template.cpp	2012-01-22 16:39:12 UTC (rev 3069)
+++ box/trunk/infrastructure/buildenv-testmain-template.cpp	2012-01-22 19:37:13 UTC (rev 3070)
@@ -369,6 +369,12 @@
 		
 		return returncode;
 	}
+	catch(BoxException &e)
+	{
+		printf("FAILED: Exception caught: %s: %s\n", e.what(),
+			e.GetMessage().c_str());
+		return 1;
+	}
 	catch(std::exception &e)
 	{
 		printf("FAILED: Exception caught: %s\n", e.what());




More information about the Boxbackup-commit mailing list