Skip to content

Commit

Permalink
return error msg only if invalid params are sent to mf (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksentak authored Sep 25, 2024
1 parent 73eef81 commit 247e69c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/messageHandler.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ async function handleMessage(message, userId, ws) {
// No delay
ws.send(responseMessage);
logger.info(`Sent "invalid params" message: ${responseMessage}`);
updateCallWithResponse(oMsg.method, oResponseMessage.error, "error", userId)
updateCallWithResponse(oMsg.method, oResponseMessage.error, "error", userId);
return;
}

// Fire pre trigger if there is one for this method
Expand Down

0 comments on commit 247e69c

Please sign in to comment.