debug: log CreateMitigation errors
This commit is contained in:
@@ -301,7 +301,9 @@ func (h *IACEHandler) InitializeProject(c *gin.Context) {
|
||||
HazardID: hazID, ReductionType: rt,
|
||||
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++
|
||||
added++
|
||||
usedIDs[mid] = true
|
||||
|
||||
Reference in New Issue
Block a user