Skip to content

Commit 4c85ea5

Browse files
Merge pull request #44 from Tofandel/patch-3
Let artisan handle exception in transformer
2 parents 0548175 + 6634b12 commit 4c85ea5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/TypeScriptTransformCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ public function handle(
4343

4444
try {
4545
$this->ensureConfiguredCorrectly();
46-
47-
$collection = $transformer->transform();
4846
} catch (Exception $exception) {
4947
$this->error($exception->getMessage());
5048

5149
return 1;
5250
}
5351

52+
$collection = $transformer->transform();
53+
5454
$this->table(
5555
['PHP class', 'TypeScript entity'],
5656
collect($collection)->map(fn (TransformedType $type, string $class) => [

0 commit comments

Comments
 (0)