From 0a3eb16d7bea5940be8d98444af57c4bf9dc79d4 Mon Sep 17 00:00:00 2001 From: Armando Ruocco Date: Wed, 24 Sep 2025 15:53:50 +0200 Subject: [PATCH] refactor: use codes.OutOfRange Signed-off-by: Armando Ruocco --- internal/cnpgi/common/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cnpgi/common/errors.go b/internal/cnpgi/common/errors.go index 16b5f5b..8f8c218 100644 --- a/internal/cnpgi/common/errors.go +++ b/internal/cnpgi/common/errors.go @@ -8,7 +8,7 @@ import ( ) // ErrEndOfWALStreamReached is returned when end of WAL is detected in the cloud archive. -var ErrEndOfWALStreamReached = status.Errorf(codes.NotFound, "end of WAL reached") +var ErrEndOfWALStreamReached = status.Errorf(codes.OutOfRange, "end of WAL reached") // ErrMissingPermissions is raised when the sidecar has no // permission to download the credentials needed to reach