diff --git a/src/controllers/deleteGuildRoleHandler.ts b/src/controllers/deleteGuildRoleHandler.ts index fbeeaf38..974722c3 100644 --- a/src/controllers/deleteGuildRoleHandler.ts +++ b/src/controllers/deleteGuildRoleHandler.ts @@ -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, }); diff --git a/src/utils/deleteGuildRole.ts b/src/utils/deleteGuildRole.ts index d88382d4..1f3daa52 100644 --- a/src/utils/deleteGuildRole.ts +++ b/src/utils/deleteGuildRole.ts @@ -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; } }