Skip to content

Commit dc43b54

Browse files
committed
mwah haha FATAL
1 parent 70ca946 commit dc43b54

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Sources/SourceDiagnostics/Emission/DiagnosticLevel.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ enum DiagnosticLevel:Equatable, Hashable, Comparable
44
case note
55
case warning
66
case error
7+
case fatal
78
}
89
extension DiagnosticLevel:CustomStringConvertible
910
{
@@ -15,6 +16,7 @@ extension DiagnosticLevel:CustomStringConvertible
1516
case .note: "note"
1617
case .warning: "warning"
1718
case .error: "error"
19+
case .fatal: "fatal"
1820
}
1921
}
2022
}
@@ -27,6 +29,7 @@ extension DiagnosticLevel
2729
case .note: .rgb(150, 150, 150)
2830
case .warning: .magenta
2931
case .error: .red
32+
case .fatal: .red
3033
}
3134
}
3235
}

Sources/SymbolGraphBuilder/SSGC.Logger.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ extension SSGC.Logger:DiagnosticLogger
5050
}
5151

5252
case .ignoreErrors:
53-
break
53+
if messages.status >= .fatal
54+
{
55+
self.failed = true
56+
}
5457

5558
case .demoteErrors:
5659
messages.demoteErrors(to: .warning)

0 commit comments

Comments
 (0)