Skip to content

Commit

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

$transformer = new TypeScriptTransformer($config);

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

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

return 1;
}
$collection = $transformer->transform();

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

0 comments on commit 65927d4

Please sign in to comment.