Francois Gouget : testbot/web: Use AddError() on the special jobs page.
Module: tools Branch: master Commit: ab5a31e2f004163c2715310b4f80796b4ea30f76 URL: https://source.winehq.org/git/tools.git/?a=commit;h=ab5a31e2f004163c2715310b... Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Wed Jul 6 16:06:16 2022 +0200 testbot/web: Use AddError() on the special jobs page. This is better than direct field access. Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- testbot/web/admin/SpecialJobs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testbot/web/admin/SpecialJobs.pl b/testbot/web/admin/SpecialJobs.pl index 2c0bbd11..d8294c1a 100644 --- a/testbot/web/admin/SpecialJobs.pl +++ b/testbot/web/admin/SpecialJobs.pl @@ -234,7 +234,7 @@ sub OnSubmit($) if (@Errors) { - $self->{ErrMessage} = join("\n", @Errors); + $self->AddError(join("\n", @Errors)); return undef; }
participants (1)
-
Alexandre Julliard