diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-10-22 12:13:16 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-10-22 12:59:22 +0000 |
| commit | 9d74f456bd5949d13672b9c64a330ebdd89b561a (patch) | |
| tree | 77b191f60f2420d0bc596fbe0560b277307886d2 | |
| parent | a573a9f4ffd7a951d0926c083a4737bf0c24527a (diff) | |
dashboard/app: invalid input are the client errors
| -rw-r--r-- | dashboard/app/graphs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dashboard/app/graphs.go b/dashboard/app/graphs.go index 34dd717cd..da2652285 100644 --- a/dashboard/app/graphs.go +++ b/dashboard/app/graphs.go @@ -259,7 +259,7 @@ func handleFileCoverage(c context.Context, w http.ResponseWriter, r *http.Reques validator.CommitHash(targetCommit, "commit"), validator.KernelFilePath(kernelFilePath, "filepath"), ); err != nil { - return err + return fmt.Errorf("%w: %w", err, ErrClientBadRequest) } targetDate, err := civil.ParseDate(dateToStr) if err != nil { |
