mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
Refactor database schema; add hunts and team_clues tables, update clues structure, and improve error handling in routes
This commit is contained in:
1 parent
4f7fdc6ad2
commit
77e83dc21c
13 files changed
+136
-111
No files matched your search
@@ -36,8 +36,11 @@ export default function TeamPage({ params }) {
|
||||
try {
|
||||
const errorData = JSON.parse(text);
|
||||
errorMessage = errorData.error || "Failed to fetch team data";
|
||||
} catch (e) {
|
||||
errorMessage = `Failed to fetch team data: ${response.status} ${text.slice(0, 100)}`;
|
||||
} catch (unused) {
|
||||
// Using 'unused' instead of '_' to avoid the warning
|
||||
errorMessage = `Failed to fetch team data: ${
|
||||
response.status
|
||||
} ${text.slice(0, 100)}`;
|
||||
}
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user