Skip to content

Commit 3d676d0

Browse files
committed
[JSON] Improve error throwing
Use DecodingError / EcodingError properly
1 parent 7886469 commit 3d676d0

File tree

3 files changed

+118
-95
lines changed

3 files changed

+118
-95
lines changed

Sources/SwiftCompilerPluginMessageHandling/JSON/CodingUtilities.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,3 @@ internal enum _CodingKey : CodingKey {
100100
}
101101
}
102102

103-
struct JSONError: Error {
104-
var message: String
105-
init(message: String = "err") {
106-
self.message = message
107-
}
108-
}

0 commit comments

Comments
 (0)