Skip to content

Commit

Permalink
chore: Improve error message for purge command (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad authored Mar 13, 2024
1 parent 0cc4512 commit c5c426e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ internal sealed class PurgeDialogCommandValidator : AbstractValidator<PurgeDialo
public PurgeDialogCommandValidator()
{
RuleFor(x => x.DialogId)
.NotEqual(default(Guid));
.NotEqual(Guid.Empty)
.WithMessage($"{{PropertyName}} was either badly formatted or {Guid.Empty}");
}
}

0 comments on commit c5c426e

Please sign in to comment.