Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 105c03a

Browse files
committed
exit(1), /s/warnings/errors
1 parent 7ae195b commit 105c03a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bob/models.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def resolve_deps(self):
9494

9595
if not key:
9696
print
97-
print 'WARNING: Archive {} does not exist.'.format(key_name)
97+
print 'ERROR: Archive {} does not exist.'.format(key_name)
9898
print ' Please deploy it to continue.'
99-
exit()
99+
exit(1)
100100

101101
# Grab the Dep from S3, download it to a temp file.
102102
archive = mkstemp()[1]
@@ -125,9 +125,9 @@ def build(self):
125125

126126
if p.returncode != 0:
127127
print
128-
print 'WARNING: An error occurred:'
128+
print 'ERROR: An error occurred:'
129129
pipe(p.stderr, sys.stderr, indent=True)
130-
exit()
130+
exit(1)
131131

132132

133133
def archive(self):
@@ -148,9 +148,9 @@ def deploy(self, allow_overwrite=False):
148148

149149
if key:
150150
if not allow_overwrite:
151-
print 'WARNING: Archive {} already exists.'.format(key_name)
151+
print 'ERROR: Archive {} already exists.'.format(key_name)
152152
print ' Use the --overwrite flag to continue.'
153-
exit()
153+
exit(1)
154154
else:
155155
key = bucket.new_key(key_name)
156156

0 commit comments

Comments
 (0)