Skip to content

Commit

Permalink
fix: put infractions on new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 authored May 7, 2024
1 parent 1a5c9c5 commit f97fcc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/anvil/src/sign-in/sign-in.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export class SignInService implements OnModuleInit {
const { infractions } = await this.preSignInChecks(location, ucard_number);
if (infractions.length !== 0) {
throw new BadRequestException({
message: `User ${ucard_number} has active infractions ${infractions.map(formatInfraction).join(",")}`,
message: `User ${ucard_number} has active infraction(s):\n${infractions.map(formatInfraction).join("\n")}`,
code: ErrorCodes.user_has_active_infractions,
});
}
Expand Down

0 comments on commit f97fcc2

Please sign in to comment.