diff options
Diffstat (limited to 'modules/private/restore_repo.go')
-rw-r--r-- | modules/private/restore_repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/private/restore_repo.go b/modules/private/restore_repo.go index feb2e1d141..b5592278ab 100644 --- a/modules/private/restore_repo.go +++ b/modules/private/restore_repo.go @@ -54,6 +54,7 @@ func RestoreRepo(ctx context.Context, repoDir, ownerName, repoName string, units if err := json.Unmarshal(body, &ret); err != nil { return http.StatusInternalServerError, fmt.Sprintf("Response body Unmarshal error: %v", err.Error()) } + return http.StatusInternalServerError, ret.Err } return http.StatusOK, fmt.Sprintf("Restore repo %s/%s successfully", ownerName, repoName) |