Skip to content

Commit

Permalink
extend known error strings
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-tra committed Nov 22, 2023
1 parent 845988c commit ce78e3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/db/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var KnownErrors = map[string]string{
"resource limit exceeded": models.NetErrorResourceLimitExceeded,
"Write on stream": models.NetErrorWriteOnStream,
"can't assign requested address": models.NetErrorCantAssignRequestedAddress, // transient error
"cannot assign requested address": models.NetErrorCantAssignRequestedAddress, // transient error
"connection gated": models.NetErrorConnectionGated, // transient error
}

Expand All @@ -52,6 +53,7 @@ var knownErrorsPrecedence = []string{
"i/o timeout",
"RPC timeout",
"no recent network activity",
"cannot assign requested address",
"can't assign requested address",
"connection gated",
"connection refused",
Expand Down

0 comments on commit ce78e3c

Please sign in to comment.