File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public extension ProtobufMirror {
133
133
134
134
}
135
135
136
- public enum MessageModificationError : Error {
136
+ public enum ProtoApplyingError : Error {
137
137
case typeMismatch
138
138
case invalidFieldNumber
139
139
}
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ class MessageGenerator {
417
417
p. print ( """
418
418
func valueAs<T>(_ type: T.Type) throws -> T {
419
419
guard let _value = value as? T else {
420
- throw \( namer. swiftProtobufModulePrefix) MessageModificationError .typeMismatch
420
+ throw \( namer. swiftProtobufModulePrefix) ProtoApplyingError .typeMismatch
421
421
}
422
422
return _value
423
423
}
@@ -427,7 +427,7 @@ class MessageGenerator {
427
427
for f in fields {
428
428
f. generateApplying ( printer: & p)
429
429
}
430
- p. print ( " default: throw \( namer. swiftProtobufModulePrefix) MessageModificationError .invalidFieldNumber" )
430
+ p. print ( " default: throw \( namer. swiftProtobufModulePrefix) ProtoApplyingError .invalidFieldNumber" )
431
431
p. print ( " } " )
432
432
p. print ( " return copy " )
433
433
}
You can’t perform that action at this time.
0 commit comments