From ea4fb090e25ff2c1c6543d450e3a2d1aa1ddcf66 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 14 Nov 2018 21:00:21 -0700 Subject: [PATCH] Better error report from spawn() fail in extractTo() --- core/archive_util.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/archive_util.js b/core/archive_util.js index 6a58f935..b10f364f 100644 --- a/core/archive_util.js +++ b/core/archive_util.js @@ -272,7 +272,9 @@ module.exports = class ArchiveUtil { try { proc = pty.spawn(archiver[action].cmd, args, this.getPtyOpts(extractPath)); } 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);