Skip to content

Commit 8348b95

Browse files
zthjfrolich
authored andcommitted
more debug logging
1 parent 702ee05 commit 8348b95

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

server/src/utils.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,14 @@ export let runAnalysisAfterSanityCheck = (
192192
: undefined,
193193
},
194194
};
195+
let stdout = "";
195196
try {
196-
let stdout = childProcess.execFileSync(binaryPath, args, options);
197-
return JSON.parse(stdout.toString());
197+
stdout = childProcess.execFileSync(binaryPath, args, options).toString();
198+
return JSON.parse(stdout);
198199
} catch (e) {
199200
console.error(e);
201+
console.error("Original response: ", stdout);
202+
console.error("Args: ", args);
200203
// Element 0 is the action we're performing
201204
reportError(String(args[0]), String(e));
202205
return null;

0 commit comments

Comments
 (0)