Skip to content

Commit 6361298

Browse files
committed
Try to fail in CI again
1 parent 8c66ba3 commit 6361298

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

webapp/src/Service/DOMJudgeService.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
use InvalidArgumentException;
4444
use Psr\Log\LoggerInterface;
4545
use ReflectionClass;
46+
use ReflectionException;
4647
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
4748
use Symfony\Component\DependencyInjection\Attribute\Autowire;
4849
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
@@ -67,6 +68,9 @@
6768
use Symfony\Component\Security\Core\User\UserInterface;
6869
use Symfony\Contracts\Cache\ItemInterface;
6970
use Twig\Environment;
71+
use Twig\Error\LoaderError;
72+
use Twig\Error\RuntimeError;
73+
use Twig\Error\SyntaxError;
7074
use ZipArchive;
7175

7276
class DOMJudgeService
@@ -1512,6 +1516,12 @@ public function getCompileConfig(Submission $submission): string
15121516
);
15131517
}
15141518

1519+
/**
1520+
* @throws SyntaxError
1521+
* @throws ReflectionException
1522+
* @throws RuntimeError
1523+
* @throws LoaderError
1524+
*/
15151525
public function getScoreboardZip(
15161526
Request $request,
15171527
RequestStack $requestStack,
@@ -1569,7 +1579,7 @@ public function getScoreboardZip(
15691579
foreach ($assetMatches[1] as $file) {
15701580
$filepath = realpath($publicPath . '/' . $file);
15711581
if ($filepath === false) {
1572-
throw new BadRequestHttpException("Could not find (symlinked) file: " . $file . " and " . $publicPath);
1582+
throw new Exception("Could not find (symlinked) file: " . $file . " and " . $publicPath);
15731583
}
15741584
if (!str_starts_with($filepath, $publicPath) &&
15751585
!str_starts_with($filepath, $this->vendorDir)

0 commit comments

Comments
 (0)