Fix error reporting.
This commit is contained in:
parent
b1076fa373
commit
a03e252866
|
@ -63,7 +63,7 @@ function convert(srcFile, destFile, opts = []) {
|
||||||
|
|
||||||
// non-zero exit code is failure
|
// non-zero exit code is failure
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
reject(new Error(`Script ${script} output:\n` +
|
reject(new Error(`Converter output:\n` +
|
||||||
(output.length ? output : "<none>")));
|
(output.length ? output : "<none>")));
|
||||||
} else {
|
} else {
|
||||||
resolve(destPath + destExt);
|
resolve(destPath + destExt);
|
||||||
|
|
Loading…
Reference in New Issue