Skip to content

Commit

Permalink
Merge pull request #42 from spatie/revert-41-patch-1
Browse files Browse the repository at this point in the history
Revert "Let artisan handle the exceptions"
  • Loading branch information
rubenvanassche authored Apr 4, 2024
2 parents 65927d4 + 6f83188 commit 0548175
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Commands/TypeScriptTransformCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,15 @@ public function handle(

$transformer = new TypeScriptTransformer($config);

$this->ensureConfiguredCorrectly();
try {
$this->ensureConfiguredCorrectly();

$collection = $transformer->transform();
$collection = $transformer->transform();
} catch (Exception $exception) {
$this->error($exception->getMessage());

return 1;
}

$this->table(
['PHP class', 'TypeScript entity'],
Expand Down

0 comments on commit 0548175

Please sign in to comment.