1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2025-04-09 10:24:17 +00:00

fixed type error when creating error message subject

This commit is contained in:
postmannen 2021-04-04 10:39:59 +02:00
parent 5cb3aab412
commit 32c70dbc59

View file

@ -175,14 +175,9 @@ func sendErrorLogMessage(newMessagesCh chan<- []subjectAndMessage, FromNode node
// createErrorMsgContent will prepare a subject and message with the content
// of the error
func createErrorMsgContent(FromNode node, theError error) subjectAndMessage {
// TESTING: Creating an error message to send to errorCentral
fmt.Printf(" --- Sending error message to central !!!!!!!!!!!!!!!!!!!!!!!!!!!!\n")
sam := subjectAndMessage{
Subject: Subject{
ToNode: "errorCentral",
CommandOrEvent: EventNACK,
Method: ErrorLog,
},
Subject: newSubject(ErrorLog, "errorCentral"),
Message: Message{
ToNode: "errorCentral",
FromNode: FromNode,