Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more logging and errors #197

Merged
merged 6 commits into from
Nov 14, 2023
Merged

Add more logging and errors #197

merged 6 commits into from
Nov 14, 2023

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Nov 13, 2023

Part of the mission to improve command errors. Adds more errors to:
FDMCommand
InviteCommand
InviteMeCommand
JoinRoomCommand
PermissionsCommand

@H-Shay H-Shay requested a review from a team as a code owner November 13, 2023 21:29
@@ -27,7 +27,7 @@ export async function runRoleCommand(action: IAction, conference: Conference, cl
const aud = backstageOnly ? conference.getAuditoriumBackstage(args[0]) : conference.getAuditorium(args[0]);
if (!aud) {
const spiRoom = conference.getInterestRoom(args[0]);
if (!spiRoom) return client.replyNotice(roomId, event, "Unknown auditorium/interest room");
if (!spiRoom) return client.replyNotice(roomId, event, `Unknown auditorium/interest room: ${spiRoom}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spiRoom would always be falsey here, so the error message probably doesn't need to include it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good catch - I got a little overzealous there :)

@H-Shay H-Shay merged commit f9ed22e into main Nov 14, 2023
4 checks passed
@H-Shay H-Shay deleted the shay/more_errors branch November 14, 2023 00:27
@H-Shay
Copy link
Contributor Author

H-Shay commented Nov 14, 2023

Merged #197 into main, thanks for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants