This commit is contained in:
Kovid Goyal 2013-02-12 10:07:45 +05:30
parent a59f6249d4
commit 286c0f3db6

View File

@ -95,10 +95,9 @@ class Check(Command):
errors = True
self.report_errors(w)
else:
from calibre.utils.serve_coffee import compile_coffeescript
from calibre.utils.serve_coffee import check_coffeescript
try:
with open(f, 'rb') as stream:
compile_coffeescript(stream.read(), f)
check_coffeescript(f)
except:
errors = True
if errors: