Skip to content

Commit 8d3e41a

Browse files
committed
Rationalize ProgrammerStatus message
1 parent 1bbd7da commit 8d3e41a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

programmer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func spProgramNetwork(portname string, boardname string, filePath string, authda
113113

114114
if err != nil {
115115
log.Printf("Command finished with error: %v ", err)
116-
mapD := map[string]string{"ProgrammerStatus": "Error " + res.Status, "Msg": "Could not program the board", "Output": "", "Err": "Could not program the board"}
116+
mapD := map[string]string{"ProgrammerStatus": "Error", "Msg": "Could not program the board", "Output": "", "Err": "Could not program the board"}
117117
mapB, _ := json.Marshal(mapD)
118118
h.broadcastSys <- mapB
119119
} else {
@@ -181,7 +181,7 @@ func spProgramRW(portname string, boardname string, boardname_rewrite string, fi
181181
err = spProgramNetwork(portname, boardname, filePath, extraInfo.authdata)
182182
}
183183
if err != nil {
184-
mapD := map[string]string{"ProgrammerStatus": "Error " + err.Error(), "Msg": "Could not program the board", "Output": "", "Err": err.Error()}
184+
mapD := map[string]string{"ProgrammerStatus": "Error", "Msg": "Could not program the board", "Output": "", "Err": err.Error()}
185185
mapB, _ := json.Marshal(mapD)
186186
h.broadcastSys <- mapB
187187
}

0 commit comments

Comments
 (0)