Skip to content

Commit 64988c3

Browse files
committed
Fix runExample task to fail on error.
Currently CI is passing for all examples regardless of error state Change-Id: Icfa73e81c2e3ea742d717b0b2b584878c5e2ad4f
1 parent 83b3bb4 commit 64988c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

buildSrc/src/main/groovy/com.google.api-ads.java-conventions.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ class ExampleRunnerTask extends JavaExec {
245245
logQuietMessage('\n\033[0;31mrunExample exception!\033[0m Did ' +
246246
'you provide a valid example identifier? ' + exampleInvocation +
247247
e.message)
248+
throw e
248249
}
249250
}
250251

0 commit comments

Comments
 (0)