Modernize error handling.

Review Request #14913 — Created March 17, 2026 and submitted

Information

rb-gateway
master

Reviewers

This change makes a couple changes to the way errors are handled in
rb-gateway:

  • Replaced fmt.Errorf("...: %s", err.Error()) with
    fmt.Errorf("...: %w", err)
  • Fixed string-based comparison of "object not found" errors to instead
    use errors.Is(...)

Ran unit tests.

Summary ID
Modernize error handling.
This change makes a couple changes to the way errors are handled in rb-gateway: - Replaced `fmt.Errorf("...: %s", err.Error())` with `fmt.Errorf("...: %w", err)` - Fixed string-based comparison of "object not found" errors to instead use `errors.Is(...)` Testing Done: Ran unit tests.
kptpzzuwkrrmlvupvqvxksumwnrswptq
Description From Last Updated

Just flagging to check if you intentionally got rid of the trailing newline in the error message here.

maubinmaubin
maubin
  1. 
      
  2. api/tokens/memory_store.go (Diff revision 1)
     
     
    Show all issues

    Just flagging to check if you intentionally got rid of the trailing newline in the error message here.

    1. Was intentional but I missed another one just below.

  3. 
      
david
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (e224ebb)