Skip to content

Commit 14f39b5

Browse files
committed
more debug logging
1 parent 9cc7e65 commit 14f39b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

server/src/utils.ts

+5-2
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)