Skip to content

Commit

Permalink
feat(linux): assert that linux.icon is a directory
Browse files Browse the repository at this point in the history
Close #1242
  • Loading branch information
develar committed Feb 12, 2017
1 parent bc0952e commit 5352b8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/electron-builder/src/targets/LinuxTargetHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class LinuxTargetHelper {
if (e.code === "ENOENT") {
throw new Error(`Icon set directory ${iconDir} doesn't exist`)
}
else if (e.code === "ENOTDIR") {
throw new Error(`linux.icon must be set to an icon set directory, but ${iconDir} is not a directory. Please see https://github.com/electron-userland/electron-builder/wiki/Options#LinuxBuildOptions-icon`)
}
else {
throw e
}
Expand Down

0 comments on commit 5352b8c

Please sign in to comment.