Skip to content

Commit c6cfdac

Browse files
committed
Report SSR errors
1 parent 9ed37ac commit c6cfdac

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Commands/StartSsr.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function handle(): int
4444
$this->info(trim($data));
4545
} else {
4646
$this->error(trim($data));
47+
report(new SsrException($data));
4748
}
4849
}
4950

src/Ssr/SsrException.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Inertia\Ssr;
4+
5+
use Exception;
6+
7+
class SsrException extends Exception
8+
{
9+
}

0 commit comments

Comments
 (0)