aboutsummaryrefslogtreecommitdiff
path: root/internal/stdlib/testdata/dev.fuzz/src
diff options
context:
space:
mode:
authorEthan Lee <ethanalee@google.com>2026-04-09 18:48:49 +0000
committerGopher Robot <gobot@golang.org>2026-04-09 13:23:05 -0700
commitee3de85430431a53d070e4712a5caa9ddcc28628 (patch)
tree445a773cf08da4bea214898392cb82baf373d624 /internal/stdlib/testdata/dev.fuzz/src
parent654ef90febc3cd4bbc261b97fbea7a6c45e1d26d (diff)
downloadgo-x-pkgsite-ee3de85430431a53d070e4712a5caa9ddcc28628.tar.xz
internal/api: refactor error handling to increase consistency
- Refactored error handling to avoid leaking internal implementation details. Database and system errors are masked by falling back to standard HTTP statuses but still logging the entire error context. - User facing error messages can now be specified within the Error struct. - Added helpers in types.go to simplify error construction. - Updated ServeModuleVersions to explicitly return 404 when no versions are found. - Expanded test coverage in api_test.go to include 404 and 400 edge cases. Change-Id: I89c4be3941126c15df6aefdd21e4bbd2d3b23be1 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/764820 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Ethan Lee <ethanalee@google.com> kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/stdlib/testdata/dev.fuzz/src')
0 files changed, 0 insertions, 0 deletions