Spaces:
Sleeping
Sleeping
copilot-swe-agent[bot] ArnavSingh76533 commited on
Commit ·
f2183cc
1
Parent(s): f0713ca
Fix error message formatting for consistency
Browse filesCo-authored-by: ArnavSingh76533 <160649079+ArnavSingh76533@users.noreply.github.com>
- pages/api/socketio.ts +1 -1
pages/api/socketio.ts
CHANGED
|
@@ -371,7 +371,7 @@ const ioHandler = (_: NextApiRequest, res: NextApiResponse) => {
|
|
| 371 |
socket.on("setMusicMode", async (musicMode: boolean) => {
|
| 372 |
const room = await getRoom(roomId)
|
| 373 |
if (room === null) {
|
| 374 |
-
throw new Error("Setting music mode for non
|
| 375 |
}
|
| 376 |
|
| 377 |
// Only allow room owner to toggle music mode
|
|
|
|
| 371 |
socket.on("setMusicMode", async (musicMode: boolean) => {
|
| 372 |
const room = await getRoom(roomId)
|
| 373 |
if (room === null) {
|
| 374 |
+
throw new Error("Setting music mode for non-existent room:" + roomId)
|
| 375 |
}
|
| 376 |
|
| 377 |
// Only allow room owner to toggle music mode
|