Harden local runtime safety and error handling

This commit is contained in:
Mikhail Chusavitin committed 2026-03-15 16:28:32 +03:00
1 parent fba9f2972a
commit 8e7da97394
25 files changed
+726 -245

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ func (h *ComponentHandler) List(c *gin.Context) {
offset := (page - 1) * perPage
localComps, total, err := h.localDB.ListComponents(localFilter, offset, perPage)
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
RespondError(c, http.StatusInternalServerError, "internal server error", err)
return
}