Skip to content

Commit

Permalink
Handle incomplete metadata gracefully on submission page.
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT committed Dec 7, 2023
1 parent 3c6e72d commit 941b391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/Controller/Jury/SubmissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public function viewAction(
unset($runResult[0]);
if (!empty($runResult['metadata'])) {
$metadata = $this->dj->parseMetadata($runResult['metadata']);
$runResult['output_limit'] = $metadata['output-truncated'];
$runResult['output_limit'] = $metadata['output-truncated'] ?? 'n/a';
}
$runResult['terminated'] = preg_match('/timelimit exceeded.*hard (wall|cpu) time/',
(string)$runResult['output_system']);
Expand Down

0 comments on commit 941b391

Please sign in to comment.