From b89aa4488cef24b68e23fdcafdf7773d6ae9e762 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 12 Dec 2025 11:59:41 +0100 Subject: [PATCH] shell: add string fields for debugging --- src/shell.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shell.js b/src/shell.js index 82a012f72..d549b58ac 100644 --- a/src/shell.js +++ b/src/shell.js @@ -81,8 +81,10 @@ function spawn(tag, file, args, options) { const e = new BoxError(BoxError.SHELL_ERROR, `${file} exited with code ${code} signal ${signal}`); e.stdout = stdout; // when promisified, this is the way to get stdout + e.stdoutString = options.encoding ? stdout : stdout.toString(); // make error printable e.stdoutLineCount = stdoutLineCount; e.stderr = stderr; // when promisified, this is the way to get stderr + e.stderrString = options.encoding ? stderr : stderr.toString(); // make error printable e.stderrLineCount = stderrLineCount; e.code = code; e.signal = signal;