sindresorhus / create-dmg

Create a good-looking DMG for your macOS app in seconds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

More verbose errors would be useful

cbenhagen opened this issue · comments

The following error message is quite minimalistic :P

In my case it was missing imagemagick:

brew install graphicsmagick imagemagick

A better error message would have helped to fix this though.

imagemagick is optional and we already have a check for it:

const hasGm = async () => {
try {
await execa('gm', ['-version']);
return true;
} catch (error) {
if (error.code === 'ENOENT') {
return false;
}
throw error;
}
};

Can you replace

process.exit(1);
with throw error; and share the stack trace?