Skip to content

Commit

Permalink
Output error line number and column from minifyjs
Browse files Browse the repository at this point in the history
Closes #84
  • Loading branch information
newtewt authored and alxndrsn committed Oct 18, 2018
1 parent 582593c commit 25b8f07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v1.17.12
* Output error line number and column from minifyjs

## v1.17.11
* Fix --version flag

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medic-conf",
"version": "1.17.11",
"version": "1.17.12",
"description": "Configure Medic Mobile deployments",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/minify-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = js => {
console.log(withLineNumbers(js));

if(result.error) {
throw new Error(`Error while minifying javascript: ${result.error}`);
throw new Error(`Error while minifying javascript at line ${result.error.line}, col ${result.error.col}: ${result.error}`);
}

if(result.warnings) {
Expand Down

0 comments on commit 25b8f07

Please sign in to comment.