Skip to content

Make error codes consistent #13

Open

Description

@JohannesOehm

For example, in websocket_api.ts, errors are handled as follows (line 389):

console.error(
"dataError",
`There was en error executing the procedure [code: 3]: (${procedureName}) ${error}`
)

this.saveToCache(
undefined,
// { data: undefined },
payload,
"raw_data",
procedureName,
error
)
client.emit(
"dataError",
`There was en error executing the procedure [code: 2]: ${error}`
)

As you can see, there is a different error code written to the command line then the error code submitted to the client. This leads the user to the impression, that there are different error codes. Please fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions