(err error)
| 52 | } |
| 53 | |
| 54 | func getErrMessage(err error) string { |
| 55 | if pErr, ok := err.(PublicError); ok { |
| 56 | return pErr.Public() |
| 57 | } |
| 58 | |
| 59 | return AlertMsgGeneric |
| 60 | } |
| 61 | |
| 62 | // PutAlert puts an alert in the given data. |
| 63 | func (d *Data) PutAlert(alert Alert, alertInYield bool) { |