errorEvent creates a new Error Resource with message
(id string, msg string)
| 34 | |
| 35 | // errorEvent creates a new Error Resource with message |
| 36 | func errorEvent(id string, msg string) api.Resource { |
| 37 | return api.Resource{ |
| 38 | ID: id, |
| 39 | Status: api.Error, |
| 40 | Text: api.StatusError, |
| 41 | Details: msg, |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // errorEventf creates a new Error Resource with format message |
| 46 | func errorEventf(id string, msg string, args ...any) api.Resource { |
no outgoing calls
no test coverage detected