From e4cb93a17c224c0aa9fc2ed5e8238560204e76f1 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 14 Nov 2018 21:24:15 -0700 Subject: [PATCH] Use better logging for archiver spawn() --- core/archive_util.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 = '';