Skip to content

Commit

Permalink
fix: improve error message for case of wrongly set electron* dependen…
Browse files Browse the repository at this point in the history
…cies (#986)
  • Loading branch information
seeekr authored and develar committed Dec 7, 2016
1 parent cb85297 commit 4635ab0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/packager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ function checkDependencies(dependencies?: { [key: string]: string }) {

for (let name of ["electron", "electron-prebuilt", "electron-builder"]) {
if (name in dependencies) {
throw new Error(`${name} must be in the devDependencies`)
throw new Error(`Package "${name}" is only allowed in "devDependencies". `
+ `Please remove it from the "dependencies" section in your package.json.`)
}
}
}
}

0 comments on commit 4635ab0

Please sign in to comment.