Skip to content

Commit

Permalink
Tweaks to OG
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Sep 20, 2023
1 parent 42669a4 commit 83bc6bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/walletextension/userconn/user_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (h *userConnHTTP) WriteResponse(msg []byte) error {
}

func (h *userConnHTTP) HandleError(msg string) {
h.logger.Error(msg)
h.logger.Error(fmt.Sprintf("Handling HTTP user error - %s", msg)))
httpLogAndSendErr(h.resp, msg)
}

Expand Down Expand Up @@ -134,7 +134,7 @@ func (w *userConnWS) WriteResponse(msg []byte) error {

// HandleError logs and prints the error, and writes it to the websocket as a JSON object with a single key, "error".
func (w *userConnWS) HandleError(msg string) {
w.logger.Error(msg)
w.logger.Error(fmt.Sprintf("Handling WS user error - %s", msg))

errMsg, err := json.Marshal(map[string]interface{}{
common.JSONKeyErr: msg,
Expand Down

0 comments on commit 83bc6bf

Please sign in to comment.