Skip to content

Commit

Permalink
Re-raise task exceptions in debug mode
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 20, 2017
1 parent fe2c5cd commit fc39108
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nikola/__main__.py
Expand Up @@ -285,6 +285,8 @@ def load_tasks(self, cmd, opt_values, pos_args):
signal('initialized').send(self.nikola)
except Exception:
LOGGER.error('Error loading tasks')
if self.nikola.debug:
raise
sys.exit(3)
return tasks + latetasks, DOIT_CONFIG

Expand Down

0 comments on commit fc39108

Please sign in to comment.