forked from github/pelican
Print errors if errors occurs :) Force to have a path specified.
This commit is contained in:
parent
eaff78bed7
commit
4bff6ebeeb
3 changed files with 8 additions and 3 deletions
|
|
@ -22,6 +22,9 @@ parser.add_argument('-s', '--settings', dest='settings',
|
|||
if __name__ == '__main__':
|
||||
args = parser.parse_args()
|
||||
files = []
|
||||
generate_output(args.path, args.templates, args.output, args.markup,
|
||||
try:
|
||||
generate_output(args.path, args.templates, args.output, args.markup,
|
||||
args.settings)
|
||||
print 'Done !'
|
||||
print 'Done !'
|
||||
except Exception, e:
|
||||
print 'Error ! %s' % e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue