| Index: go/src/infra/appengine/test-results/frontend/upload.go
|
| diff --git a/go/src/infra/appengine/test-results/frontend/upload.go b/go/src/infra/appengine/test-results/frontend/upload.go
|
| index 892e8820f4ccf4d48544557bd5ade92356310a59..74afd87c1b8f08789676be5e90cf6a6f9ec3417a 100644
|
| --- a/go/src/infra/appengine/test-results/frontend/upload.go
|
| +++ b/go/src/infra/appengine/test-results/frontend/upload.go
|
| @@ -279,7 +279,11 @@ func updateFullResults(c context.Context, data io.Reader) error {
|
| }
|
| if err := updateIncremental(c, &incr); err != nil {
|
| logging.WithError(err).Errorf(c, "updateFullResults: updateIncremental")
|
| - return statusError{err, http.StatusInternalServerError}
|
| + code := http.StatusInternalServerError
|
| + if se, ok := err.(statusError); ok {
|
| + code = se.code
|
| + }
|
| + return statusError{err, code}
|
| }
|
|
|
| p := GetUploadParams(c)
|
|
|