Skip to content

Commit

Permalink
Report SSR errors
Browse files Browse the repository at this point in the history
  • Loading branch information
reinink committed Jan 13, 2023
1 parent 9ed37ac commit c6cfdac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Commands/StartSsr.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function handle(): int
$this->info(trim($data));
} else {
$this->error(trim($data));
report(new SsrException($data));
}
}

Expand Down
9 changes: 9 additions & 0 deletions src/Ssr/SsrException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Inertia\Ssr;

use Exception;

class SsrException extends Exception
{
}

0 comments on commit c6cfdac

Please sign in to comment.