We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 224851f commit 902d833Copy full SHA for 902d833
Sources/SourceParsingFramework/Utilities/Logger.swift
@@ -94,9 +94,11 @@ public func warning(_ message: String) {
94
/// Log the given message at the `error` level and terminate.
95
///
96
/// - parameter message: The message to log.
97
+/// - returns: `Never`.
98
/// - note: The mesasge is only logged if the current `minLoggingOutputLevel`
99
/// is set at or below the `error` level.
-public func error(_ message: String) {
100
+/// - note: This method terminates the program. It returns `Never`.
101
+public func error(_ message: String) -> Never {
102
log(message, atLevel: .error)
103
exit(1)
104
}
0 commit comments