Skip to content

Commit 4633f48

Browse files
committed
fix(diff route): append newline to mid-stream stderr log
Without the trailing newline the message merges with the next log line.
1 parent 229bd2e commit 4633f48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/routes/diff.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function streamGitDiff(
133133
} else {
134134
// Headers were already sent, so we can't change the status. Log and terminate
135135
// the response — the client will see a truncated patch.
136-
process.stderr.write(`git diff failed mid-stream (exit ${code}): ${stderr}`);
136+
process.stderr.write(`git diff failed mid-stream (exit ${code}): ${stderr}\n`);
137137
if (!res.writableEnded) res.end();
138138
}
139139
settle();

0 commit comments

Comments
 (0)