Skip to content

Commit a47a54b

Browse files
fix(classifier): pg error code for unclassified errors (#3550)
1 parent f0f8029 commit a47a54b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flow/alerting/classifier.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,8 @@ func GetErrorClass(ctx context.Context, err error) (ErrorClass, ErrorInfo) {
525525

526526
case pgerrcode.DuplicateFile, pgerrcode.DeadlockDetected, pgerrcode.SerializationFailure:
527527
return ErrorRetryRecoverable, pgErrorInfo
528+
default:
529+
return ErrorOther, pgErrorInfo
528530
}
529531
}
530532

0 commit comments

Comments
 (0)