Skip to content

Commit ae01540

Browse files
committed
Use different codes for different types of error
1 parent c4a04c3 commit ae01540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/WordPressTest/TestUtilities/JSONObject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extension JSONObject {
2828
guard let url = candidates.compactMap({ $0 }).first else {
2929
throw NSError(
3030
domain: "JSONObject",
31-
code: 1,
31+
code: 2,
3232
userInfo: [
3333
NSLocalizedDescriptionKey: "Can't find JSON file named \(fileName) or \(fileName).json"
3434
]

0 commit comments

Comments
 (0)