diff --git a/workspace-server/internal/handlers/org.go b/workspace-server/internal/handlers/org.go index 233cc69f..39f46f11 100644 --- a/workspace-server/internal/handlers/org.go +++ b/workspace-server/internal/handlers/org.go @@ -607,7 +607,7 @@ func (h *OrgHandler) Import(c *gin.Context) { orgFile := filepath.Join(orgBaseDir, "org.yaml") data, err := os.ReadFile(orgFile) if err != nil { - c.JSON(http.StatusNotFound, gin.H{"error": fmt.Sprintf("org template not found: %s", body.Dir)}) + c.JSON(http.StatusNotFound, gin.H{"error": "org template not found"}) return } // Expand !include directives before unmarshal. Splits org.yaml diff --git a/workspace-server/internal/handlers/workspace_crud.go b/workspace-server/internal/handlers/workspace_crud.go index cc487a4a..59db87b4 100644 --- a/workspace-server/internal/handlers/workspace_crud.go +++ b/workspace-server/internal/handlers/workspace_crud.go @@ -332,7 +332,7 @@ func (h *WorkspaceHandler) Delete(c *gin.Context) { descendantIDs, stopErrs, err := h.CascadeDelete(ctx, id) if err != nil { log.Printf("Delete: CascadeDelete(%s) failed: %v", id, err) - c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) + c.JSON(http.StatusInternalServerError, gin.H{"error": "internal error processing delete request"}) return } allIDs := append([]string{id}, descendantIDs...)