Skip to content

Commit 8a42433

Browse files
committed
Ensure no empty fatal error messages
1 parent 738ee10 commit 8a42433

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/SystemTests/FileOperationsTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ final class FileOperationsTest: XCTestCase {
108108
// Should we assert? I'd be interested in knowing if this happened
109109
XCTAssert(false)
110110
} catch {
111-
fatalError()
111+
fatalError("FATAL: `testAdHocOpen`")
112112
}
113113
}
114114
}

Tests/SystemTests/TestingInfrastructure.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ extension TestCase {
9292
func fail(_ reason: String? = nil) {
9393
XCTAssert(false, failureMessage(reason), file: file, line: line)
9494
if forceFatalFailures {
95-
fatalError(reason ?? "")
95+
fatalError(reason ?? "<no reason>")
9696
}
9797
}
9898

0 commit comments

Comments
 (0)