Skip to content

Commit 6026ec5

Browse files
committed
switch error type
1 parent ce59a31 commit 6026ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/MongoSwift/WriteConcern.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public class WriteConcern: Codable {
128128
let journalStr = String(describing: journal)
129129
let wStr = String(describing: w)
130130
let timeoutStr = String(describing: wtimeoutMS)
131-
throw MongoError.writeConcernError(code: 0, message:
131+
throw MongoError.invalidArgument(message:
132132
"Invalid combination of WriteConcern options: journal=\(journalStr), w=\(wStr), wtimeoutMS=\(timeoutStr)")
133133
}
134134
}

0 commit comments

Comments
 (0)