Skip to content

Commit 5f5f416

Browse files
chore!: change the error code enum to internal visibility
1 parent f5830f1 commit 5f5f416

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/GraphQLWS/GraphQLWSError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ struct GraphQLWSError: Error {
8888
}
8989

9090
/// Error codes for miscellaneous issues
91-
public enum ErrorCode: Int, CustomStringConvertible, Sendable {
91+
enum ErrorCode: Int, CustomStringConvertible, Sendable {
9292
/// Miscellaneous
9393
case miscellaneous = 4400
9494

Tests/GraphQLWSTests/GraphQLWSTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct GraphqlTransportWSTests {
5252
#expect(
5353
error
5454
== TestMessengerError(
55-
code: ErrorCode.notInitialized.rawValue,
55+
code: 4431,
5656
message: "Connection not initialized"
5757
)
5858
)
@@ -99,7 +99,7 @@ struct GraphqlTransportWSTests {
9999
#expect(
100100
error
101101
== TestMessengerError(
102-
code: ErrorCode.unauthorized.rawValue,
102+
code: 4430,
103103
message: "Unauthorized"
104104
)
105105
)

0 commit comments

Comments
 (0)