Better error report from spawn() fail in extractTo()
This commit is contained in:
parent
941e7d0a03
commit
ea4fb090e2
|
@ -272,7 +272,9 @@ module.exports = class ArchiveUtil {
|
||||||
try {
|
try {
|
||||||
proc = pty.spawn(archiver[action].cmd, args, this.getPtyOpts(extractPath));
|
proc = pty.spawn(archiver[action].cmd, args, this.getPtyOpts(extractPath));
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
return cb(e);
|
return cb(Errors.ExternalProcess(
|
||||||
|
`Error spawning archiver process "${archiver[action].cmd}" with args "${args.join(' ')}": ${e.message}`)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.spawnHandler(proc, (haveFileList ? 'Extraction' : 'Decompression'), cb);
|
return this.spawnHandler(proc, (haveFileList ? 'Extraction' : 'Decompression'), cb);
|
||||||
|
|
Loading…
Reference in New Issue