diff --git a/dev/bots/docs.sh b/dev/bots/docs.sh index ec2b03c6d8..e9fc10e666 100755 --- a/dev/bots/docs.sh +++ b/dev/bots/docs.sh @@ -18,4 +18,9 @@ cp dev/docs/google2ed1af765c529f57.html dev/docs/doc if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then cd dev/docs firebase deploy --project docs-flutter-io + exit_code=$? + if [[ $exit_code -ne 0 ]]; then + >&2 echo "Error deploying docs via firebase ($exit_code)" + exit $exit_code + fi fi diff --git a/dev/bots/travis_upload.sh b/dev/bots/travis_upload.sh index 8e0b29ca69..7d42d923f1 100755 --- a/dev/bots/travis_upload.sh +++ b/dev/bots/travis_upload.sh @@ -20,4 +20,9 @@ fi if [ "$SHARD" = "docs" ]; then # generate the API docs, upload them ./dev/bots/docs.sh + exit_code=$? + if [[ $exit_code -ne 0 ]]; then + >&2 echo "Error generating docs ($exit_code)" + exit $exit_code + fi fi diff --git a/dev/tools/javadoc.dart b/dev/tools/javadoc.dart index e888060bbf..2b99f0eb56 100644 --- a/dev/tools/javadoc.dart +++ b/dev/tools/javadoc.dart @@ -37,4 +37,5 @@ Future main(List args) async { print('Expected file ${testFile.path} not found'); exit(1); } + print('Javadocs ready to go!'); }