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
472472 foreach ($ contest ->getProblems () as $ cp ) {
473473 if (empty ($ cp ->getColor ())) {
474474 $ 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" ;
476476 }
477477 }
478478 }
479479
480480 $ desc = '' ;
481481 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+ }
485492 }
486493
487494 $ this ->stopwatch ->stop (__FUNCTION__ );
You can’t perform that action at this time.
0 commit comments