debug: log CreateMitigation errors

This commit is contained in:
Benjamin Admin
2026-05-15 21:52:04 +02:00
parent 9797234ff6
commit 77308b783f
@@ -301,7 +301,9 @@ func (h *IACEHandler) InitializeProject(c *gin.Context) {
HazardID: hazID, ReductionType: rt, HazardID: hazID, ReductionType: rt,
Name: entry.Name, Description: entry.Description, Name: entry.Name, Description: entry.Description,
}) })
if cerr == nil { if cerr != nil {
fmt.Printf("MEASURE-ERROR: mid=%s name=%s err=%v\n", mid, entry.Name, cerr)
} else {
created++ created++
added++ added++
usedIDs[mid] = true usedIDs[mid] = true