Skip to content

Commit 795b22a

Browse files
author
Pouya Yarandi
committed
Rename field mask error
1 parent 249b066 commit 795b22a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftProtobuf/Google_Protobuf_FieldMask+Extensions.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ extension Google_Protobuf_FieldMask {
206206
var paths: [String] = []
207207
for number in fieldNumbers {
208208
guard let name = M.protoName(for: number) else {
209-
throw FieldMaskUtilsError.invalidFieldNumber
209+
throw FieldMaskError.invalidFieldNumber
210210
}
211211
paths.append(name)
212212
}
@@ -229,7 +229,7 @@ extension Google_Protobuf_FieldMask {
229229
of messageType: M.Type
230230
) throws {
231231
guard M.isPathValid(path) else {
232-
throw FieldMaskUtilsError.invalidPath
232+
throw FieldMaskError.invalidPath
233233
}
234234
paths.append(path)
235235
}
@@ -354,7 +354,7 @@ extension Google_Protobuf_FieldMask {
354354
}
355355

356356
/// Describes errors could happen during FieldMask utilities.
357-
public enum FieldMaskUtilsError: Error {
357+
public enum FieldMaskError: Error {
358358

359359
/// Describes a path is invalid for a Message type.
360360
case invalidPath

0 commit comments

Comments
 (0)