Skip to content

Commit

Permalink
fix: log error messages for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajjs committed Nov 11, 2024
1 parent df52b33 commit 0d1d4ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/deleteGuildRoleHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export async function deleteGuildRoleHandler(request: IRequest, env: env) {
});
}
} catch (err) {
console.error("An error occurred while deleting discord role:", err);
return new JSONResponse(response.INTERNAL_SERVER_ERROR, {
status: 500,
});
Expand Down
1 change: 1 addition & 0 deletions src/utils/deleteGuildRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export async function deleteGuildRole(
return INTERNAL_SERVER_ERROR;
}
} catch (err) {
console.error("An error occurred while deleting discord role:", err);
return INTERNAL_SERVER_ERROR;
}
}

0 comments on commit 0d1d4ac

Please sign in to comment.