Skip to content

Commit

Permalink
Change the error codes
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Jul 17, 2024
1 parent 9fa35ef commit 6117314
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/vt/vterrors/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ var (
// VT13001 General Error
VT13001 = errorWithoutState("VT13001", vtrpcpb.Code_INTERNAL, "[BUG] %s", "This error should not happen and is a bug. Please file an issue on GitHub: https://github.com/vitessio/vitess/issues/new/choose.")
VT13002 = errorWithoutState("VT13002", vtrpcpb.Code_INTERNAL, "unexpected AST struct for query: %s", "This error should not happen and is a bug. Please file an issue on GitHub: https://github.com/vitessio/vitess/issues/new/choose.")
VT13003 = errorWithoutState("VT13003", vtrpcpb.Code_INTERNAL, "test", "test long text")

VT14001 = errorWithoutState("VT14001", vtrpcpb.Code_UNAVAILABLE, "connection error", "The connection failed.")
VT14002 = errorWithoutState("VT14002", vtrpcpb.Code_UNAVAILABLE, "no available connection", "No available connection.")
Expand Down Expand Up @@ -186,6 +187,7 @@ var (
VT12002,
VT13001,
VT13002,
VT13003,
VT14001,
VT14002,
VT14003,
Expand Down

0 comments on commit 6117314

Please sign in to comment.