diff --git a/core/archive_util.js b/core/archive_util.js index b10f364f..8549cd12 100644 --- a/core/archive_util.js +++ b/core/archive_util.js @@ -222,7 +222,9 @@ module.exports = class ArchiveUtil { try { proc = pty.spawn(archiver.compress.cmd, args, this.getPtyOpts()); } catch(e) { - return cb(e); + return cb(Errors.ExternalProcess( + `Error spawning archiver process "${archiver.compress.cmd}" with args "${args.join(' ')}": ${e.message}`) + ); } return this.spawnHandler(proc, 'Compression', cb); @@ -297,7 +299,9 @@ module.exports = class ArchiveUtil { try { proc = pty.spawn(archiver.list.cmd, args, this.getPtyOpts()); } catch(e) { - return cb(e); + return cb(Errors.ExternalProcess( + `Error spawning archiver process "${archiver.list.cmd}" with args "${args.join(' ')}": ${e.message}`) + ); } let output = '';