aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http_handle_repo_contrib_one.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/http_handle_repo_contrib_one.go b/http_handle_repo_contrib_one.go
index 42edd8c..6841f2b 100644
--- a/http_handle_repo_contrib_one.go
+++ b/http_handle_repo_contrib_one.go
@@ -50,6 +50,10 @@ func handle_repo_contrib_one(w http.ResponseWriter, r *http.Request, params map[
params["destination_commit"] = destination_commit
patch, err := destination_commit.Patch(source_commit)
+ if err != nil {
+ http.Error(w, "Error getting patch: "+err.Error(), http.StatusInternalServerError)
+ return
+ }
params["file_patches"] = make_usable_file_patches(patch)
render_template(w, "repo_contrib_one", params)