File tree 1 file changed +6
-1
lines changed
Sources/SwiftDriver/SwiftScan
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 15
15
import func Foundation. strdup
16
16
import func Foundation. free
17
17
import class Foundation. JSONDecoder
18
+ import protocol Foundation. LocalizedError
18
19
import struct Foundation. Data
19
20
20
21
import protocol TSCBasic. DiagnosticData
21
22
import struct TSCBasic. AbsolutePath
22
23
import struct TSCBasic. Diagnostic
23
24
24
- public enum DependencyScanningError : Error , DiagnosticData {
25
+ public enum DependencyScanningError : LocalizedError , DiagnosticData {
25
26
case missingRequiredSymbol( String )
26
27
case dependencyScanFailed( String )
27
28
case failedToInstantiateScanner
@@ -60,6 +61,10 @@ public enum DependencyScanningError: Error, DiagnosticData {
60
61
return " Supported compiler argument query failed "
61
62
}
62
63
}
64
+
65
+ public var errorDescription : String ? {
66
+ return self . description
67
+ }
63
68
}
64
69
65
70
@_spi ( Testing) public struct ScannerDiagnosticPayload {
You can’t perform that action at this time.
0 commit comments