Skip to content

Commit 3cbf80a

Browse files
committed
remove error log message
1 parent 2ee40ed commit 3cbf80a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/grpc/grpc.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@ func retrieveTokenFromFile(path string) (string, error) {
269269
var keyVal string
270270
keyBytes, err := os.ReadFile(path)
271271
if err != nil {
272-
slog.Error("Unable to read token from file", "error", err)
273-
return "", err
272+
return "", fmt.Errorf("unable to read token from file: %w", err)
274273
}
275274

276275
keyBytes = bytes.TrimSpace(keyBytes)

0 commit comments

Comments
 (0)