Skip to content

Commit

Permalink
Fix missing module error
Browse files Browse the repository at this point in the history
Fix inverted code and statusCode, and use the "Required client library
plugin not present" [1] error code (which we currently use when the
vcdiff plugin is missing).

[1] https://github.com/ably/ably-common/blob/main/protocol/errors.json
  • Loading branch information
lawrence-forooghian committed Nov 27, 2023
1 parent 4294dc9 commit d9c861f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/lib/util/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,5 +569,5 @@ export function arrEquals(a: any[], b: any[]) {
}

export function throwMissingModuleError(moduleName: keyof ModulesMap): never {
throw new ErrorInfo(`${moduleName} module not provided`, 400, 40000);
throw new ErrorInfo(`${moduleName} module not provided`, 40019, 400);
}

0 comments on commit d9c861f

Please sign in to comment.