diff options
Diffstat (limited to 'lib/minify.js')
-rw-r--r-- | lib/minify.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/minify.js b/lib/minify.js index 27cc9118..a827930a 100644 --- a/lib/minify.js +++ b/lib/minify.js @@ -146,6 +146,8 @@ function minify(files, options) { result.warnings = warnings; } return result; + } catch (ex) { + return { error: ex }; } finally { AST_Node.warn_function = warn_function; } |