MCPcopy
hub / github.com/dnote/dnote / getErrMessage

Function getErrMessage

pkg/server/views/data.go:54–60  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

52}
53
54func 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.
63func (d *Data) PutAlert(alert Alert, alertInYield bool) {

Callers

nothing calls this directly

Calls 1

PublicMethod · 0.65

Tested by

no test coverage detected