File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -472,16 +472,23 @@ public function checkContestsValidate(): ConfigCheckItem
472
472
foreach ($ contest ->getProblems () as $ cp ) {
473
473
if (empty ($ cp ->getColor ())) {
474
474
$ result = ($ result === 'E ' ? 'E ' : 'W ' );
475
- $ cperrors [$ cid ] .= "No color for problem " . $ cp ->getShortname () . " in contest c " . $ cid . "\n" ;
475
+ $ cperrors [$ cid ] .= " - No color for problem " . $ cp ->getShortname () . " in contest c " . $ cid . "\n" ;
476
476
}
477
477
}
478
478
}
479
479
480
480
$ desc = '' ;
481
481
foreach ($ contesterrors as $ cid => $ errors ) {
482
- $ desc .= "Contest: c $ cid: " .
483
- /* @phpstan-ignore-next-line */
484
- (count ($ errors ) == 0 ? 'no errors ' : (string )$ errors ) ."\n" .$ cperrors [$ cid ];
482
+ $ desc .= "Contest: c $ cid: " ;
483
+ if (count ($ errors ) == 0 && empty ($ cperrors [$ cid ])) {
484
+ $ desc .= "no errors \n" ;
485
+ } else {
486
+ $ desc .= "errors: \n" ;
487
+ foreach ($ errors as $ error ) {
488
+ $ desc .= " - " . $ error ->getPropertyPath () . ": " . $ error ->getMessage () . "\n" ;
489
+ }
490
+ $ desc .= $ cperrors [$ cid ];
491
+ }
485
492
}
486
493
487
494
$ this ->stopwatch ->stop (__FUNCTION__ );
You can’t perform that action at this time.
0 commit comments