test
This commit is contained in:
@@ -41,6 +41,7 @@ func (h *PropertyTypesHandler) GetRootPropertyTypesGroups(ctx *gin.Context) {
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
log.Printf("Error parsing template: %v", err)
|
||||
ctx.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
|
||||
return
|
||||
}
|
||||
@@ -51,6 +52,7 @@ func (h *PropertyTypesHandler) GetRootPropertyTypesGroups(ctx *gin.Context) {
|
||||
log.Printf("Executing template with root property types groups")
|
||||
err = tmpl.Execute(ctx.Writer, rootGroups)
|
||||
if err != nil {
|
||||
log.Printf("Error executing template: %v", err)
|
||||
ctx.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user