Skip to content

Commit

Permalink
EC2 script should exit with non-zero code on UsageError
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Douglas R. de Oliveira committed May 4, 2014
1 parent 0c98a8f commit 5915e6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ec2/spark_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ def main():
real_main()
except UsageError, e:
print >> stderr, "\nError:\n", e
sys.exit(1)


if __name__ == "__main__":
Expand Down

0 comments on commit 5915e6d

Please sign in to comment.