Skip to content
Browse files

two small fixes (closes GH-30)

  • Loading branch information...
1 parent de09b7d commit 1d634330b0761c508cb187c1db2bb34a16c78903 Klaas Bosteels committed Mar 14, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 dumbo/core.py
View
9 dumbo/core.py
@@ -194,9 +194,10 @@ def main(runner, starter=None, variator=None):
if errormsg:
print >> sys.stderr, "ERROR: " + errormsg
status = 1
- retval = program.start()
- if retval != 0:
- status = retval
+ else:
+ retval = program.start()
+ if retval != 0:
+ status = retval
if status != 0:
sys.exit(status)
except Error, e:
@@ -206,7 +207,7 @@ def main(runner, starter=None, variator=None):
job = Job()
errormsg = runner(job)
if errormsg:
- print >> sys.sdterr, errormsg
+ print >> sys.stderr, errormsg
sys.exit(1)
job.run()

0 comments on commit 1d63433

Please sign in to comment.
Something went wrong with that request. Please try again.