Skip to content

Commit 27520b3

Browse files
committed
Update SmokeTestSourceWriter.java to include error type and message on failure
1 parent 033391a commit 27520b3

File tree

1 file changed

+1
-1
lines changed
  • tools/code-generation/smithy/codegen/cpp-smoke-tests-codegen/src/main/java/com/amazonaws/util/awsclientsmithygenerator/generators

1 file changed

+1
-1
lines changed

tools/code-generation/smithy/codegen/cpp-smoke-tests-codegen/src/main/java/com/amazonaws/util/awsclientsmithygenerator/generators/SmokeTestsSourceWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected void defineTestCase(SmokeTestData test)
8181
write("auto outcome = clientSp->$L(input);",test.getOperationName());
8282
if (test.isExpectSuccess())
8383
{
84-
write("EXPECT_TRUE( outcome.IsSuccess());");
84+
write("EXPECT_TRUE( outcome.IsSuccess()) << outcome.GetError().GetExceptionName() << \" - \" << outcome.GetError().GetMessage();");
8585
}
8686
else
8787
{

0 commit comments

Comments
 (0)