MCPcopy
hub / github.com/Ne0nd0g/merlin / NewErrorMessage

Function NewErrorMessage

pkg/client/message/message.go:70–78  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

68}
69
70func NewErrorMessage(err error) *Message {
71 return &Message{
72 id: uuid.New(),
73 level: Warn,
74 message: err.Error(),
75 timestamp: time.Now().UTC(),
76 isError: true,
77 }
78}
79
80// ID returns the unique identifier for the message
81func (m Message) ID() uuid.UUID {

Callers 2

HandleMethod · 0.92
delegateMethod · 0.92

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected