Skip to content

Commit

Permalink
fix throw
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Oct 13, 2024
1 parent 13e5f48 commit 9cb97f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/boardData.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class BoardData {
if (jwtauth.roleInBoard(message.token, message.board) === "moderator") {
this.clear();
} else {
throw new Error("User is not a moderator");
console.error("User is not a moderator and tried to clear the board");
}
break;
default:
Expand Down

0 comments on commit 9cb97f0

Please sign in to comment.