Skip to content

Commit 3b0466f

Browse files
committed
fix: improve error message for template processing failure
1 parent 623e691 commit 3b0466f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/router/contract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func generateCompanyContractDocx(w http.ResponseWriter, r *http.Request) {
222222

223223
modifiedDocx, err := replaceDocxPlaceholders(b, replacements, replacementsPlain)
224224
if err != nil {
225-
writeJSONError(w, http.StatusInternalServerError, "error processing template")
225+
writeJSONError(w, http.StatusInternalServerError, "error processing template: "+err.Error())
226226
return
227227
}
228228

0 commit comments

Comments
 (0)