Skip to content

Commit

Permalink
catch fitting exception
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Nov 2, 2024
1 parent 6aff9f0 commit e73b37b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/Test/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
use PSX\Http\ResponseInterface;
use PSX\Http\Stream\Stream;
use PSX\OAuth2\AccessToken;
use PSX\Schema\Exception\ValidationException;
use PSX\Schema\Exception\TraverserException;
use PSX\Schema\SchemaManagerInterface;
use PSX\Schema\SchemaTraverser;
use PSX\Uri\Uri;
Expand Down Expand Up @@ -138,7 +138,7 @@ public function run(Table\Generated\TestRow $test, Table\Generated\OperationRow
(new SchemaTraverser(ignoreUnknown: false))->traverse($data, $schema);

$this->set($test, Table\Test::STATUS_SUCCESS, '', $body);
} catch (ValidationException $e) {
} catch (TraverserException $e) {
$this->set($test, Table\Test::STATUS_ERROR, $e->getMessage(), $body);
} catch (\Throwable $e) {
$this->set($test, Table\Test::STATUS_ERROR, $this->getErrorMessage($e), $body);
Expand Down

0 comments on commit e73b37b

Please sign in to comment.