Skip to content

Commit

Permalink
adding print of directives on incorrect directive name.
Browse files Browse the repository at this point in the history
  • Loading branch information
toumorokoshi committed Jan 5, 2016
1 parent edf7da9 commit e026a71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions uranium/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,18 @@ def _run(self, options):
code = 1
try:
self._warmup()
log_multiline(LOGGER, logging.INFO, STARTING_URANIUM)
path = os.path.join(self.root, options.build_file)
u_assert(os.path.exists(path),
"build file at {0} does not exist".format(path))
try:
log_multiline(LOGGER, logging.INFO, STARTING_URANIUM)
code = self._run_script(path, options.directive,
override_func=options.override_func)
except ScriptException as e:
log_multiline(LOGGER, logging.INFO, str(e))
finally:
self._finalize()
log_multiline(LOGGER, logging.INFO, ENDING_URANIUM)
log_multiline(LOGGER, logging.INFO, ENDING_URANIUM)
finally:
self._options = None
return code
Expand Down

0 comments on commit e026a71

Please sign in to comment.