Skip to content

Commit d1e16fd

Browse files
authored
Print more information when exerciseServer returns an unexpected exit code (#72)
1 parent a6af99b commit d1e16fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ async function getTsServerRepoResult(
228228
case exercise.EXIT_UNHANDLED_EXCEPTION:
229229
default:
230230
console.log(`Exited with code ${newSpawnResult.code}`);
231+
// Don't duplicate if printed above
232+
if (!diagnosticOutput) {
233+
dumpSpawnResult(newSpawnResult);
234+
}
231235
return { status: "Unknown failure" };
232236
}
233237

0 commit comments

Comments
 (0)