I'm using cookiecutter
to help manage a web template. You can specify a special file hooks/pre_gen_project.py
that will run before any of the template commands start. If it fails however, cookiecutter keeps going, even if hooks/pre_gen_project.py
throws an exception! A minimal example would simply be:
raise SyntaxError
in this file. Is there a way to halt execution once an error has been raised?