diff --git a/.github/workflows/metabase_export.yml b/.github/workflows/metabase_export.yml index eecbf13a7..de9f64001 100644 --- a/.github/workflows/metabase_export.yml +++ b/.github/workflows/metabase_export.yml @@ -35,7 +35,7 @@ jobs: run: | echo "DATABASE_URL=${{ secrets.METABASE_EXPORT_DATABASE_URL }}" >> .env echo "METABASE_DATABASE_URL=${{ secrets.METABASE_EXPORT_METABASE_DATABASE_URL }}" >> .env - echo "APP_DIALOG_BASE_URL=${{ variables.METABASE_EXPORT_APP_DIALOG_BASE_URL }}" >> .env + echo "APP_DIALOG_BASE_URL=${{ vars.METABASE_EXPORT_APP_DIALOG_BASE_URL }}" >> .env - name: Run export run: make ci_metabase_export BIN_PHP="php" BIN_CONSOLE="php bin/console" BIN_COMPOSER="composer" diff --git a/src/Infrastructure/Symfony/Command/LitteralisImportCommand.php b/src/Infrastructure/Symfony/Command/LitteralisImportCommand.php index 6c4eaee09..a66b4e247 100644 --- a/src/Infrastructure/Symfony/Command/LitteralisImportCommand.php +++ b/src/Infrastructure/Symfony/Command/LitteralisImportCommand.php @@ -49,7 +49,7 @@ public function execute(InputInterface $input, OutputInterface $output): int $report = $this->executor->execute($name, $orgId, $now, $this->reporter); $output->write($report); - } catch (\RuntimeException $exc) { + } catch (\Exception $exc) { $output->writeln($exc->getMessage()); $returnCode = Command::FAILURE; diff --git a/tests/Unit/Infrastructure/Symfony/Command/LitteralisImportCommandTest.php b/tests/Unit/Infrastructure/Symfony/Command/LitteralisImportCommandTest.php index e58b07a28..e0887852c 100644 --- a/tests/Unit/Infrastructure/Symfony/Command/LitteralisImportCommandTest.php +++ b/tests/Unit/Infrastructure/Symfony/Command/LitteralisImportCommandTest.php @@ -78,7 +78,7 @@ public function testExecuteError() ->willReturnCallback( fn () => match ($matcher->getInvocationCount()) { 1 => 'report1' . PHP_EOL, - 2 => throw new \RuntimeException('Failed'), + 2 => throw new \Exception('Failed'), 3 => 'report3' . PHP_EOL, }, );