Skip to content

Commit 4c368b3

Browse files
authored
Missing newline on error in entryPoint(). (#542)
There's a missing newline when logging an error in `entryPoint()` which results in the command prompt appearing on the wrong line after the test process terminates (when using `swift test`). ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 3894ad3 commit 4c368b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Testing/ABI/EntryPoints/EntryPoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func entryPoint(passing args: __CommandLineArguments_v0?, eventHandler: Event.Ha
116116
}
117117
} catch {
118118
#if !SWT_NO_FILE_IO
119-
try? FileHandle.stderr.write(String(describing: error))
119+
try? FileHandle.stderr.write("\(error)\n")
120120
#endif
121121

122122
exitCode.withLock { exitCode in

0 commit comments

Comments
 (0)