diff --git a/server/services/auth/utils/roleCheck.ts b/server/services/auth/utils/roleCheck.ts index 3c2fa43..d97cba4 100644 --- a/server/services/auth/utils/roleCheck.ts +++ b/server/services/auth/utils/roleCheck.ts @@ -35,10 +35,10 @@ export const areRolesIn = async () => { `${JSON.stringify(newRole)}, "Roles were just added due to missing them on server startup"` ); } catch (error) { - createLog("error", "lst", "auth", "There was an error adding new roles to the db"); + createLog("error", "lst", "auth", `There was an error adding new roles to the db, ${error}`); } } } catch (error) { - createLog("error", "lst", "auth", "There was an error getting or adding new roles"); + createLog("error", "lst", "auth", `There was an error adding new roles to the db, ${error}`); } };