We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cc7e65 commit 14f39b5Copy full SHA for 14f39b5
server/src/utils.ts
@@ -192,11 +192,14 @@ export let runAnalysisAfterSanityCheck = (
192
: undefined,
193
},
194
};
195
+ let stdout = "";
196
try {
- let stdout = childProcess.execFileSync(binaryPath, args, options);
197
- return JSON.parse(stdout.toString());
+ stdout = childProcess.execFileSync(binaryPath, args, options).toString();
198
+ return JSON.parse(stdout);
199
} catch (e) {
200
console.error(e);
201
+ console.error("Original response: ", stdout);
202
+ console.error("Args: ", args);
203
// Element 0 is the action we're performing
204
reportError(String(args[0]), String(e));
205
return null;
0 commit comments