diff --git a/VERSION b/VERSION index badf3681..51c3ddfc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.1.1 (2012-10-20 10:08:54) dev +Version 2.1.1 (2012-10-20 10:11:05) dev diff --git a/gluon/compileapp.py b/gluon/compileapp.py index 36360d7a..5f145888 100644 --- a/gluon/compileapp.py +++ b/gluon/compileapp.py @@ -453,7 +453,10 @@ def compile_views(folder): path = pjoin(folder, 'views') for file in listdir(path, '^[\w/\-]+(\.\w+)+$'): - data = parse_template(file, path) + try: + data = parse_template(file, path) + except Exception, e: + raise Exception("%s in %s" % (e, file)) filename = ('views/%s.py' % file).replace('/', '_').replace('\\', '_') filename = pjoin(folder, 'compiled', filename) write_file(filename, data)