diff --git a/src/Illuminate/Routing/Exceptions/StreamedResponseException.php b/src/Illuminate/Routing/Exceptions/StreamedResponseException.php index 87ae6438ee4f..fa6eb7602b4c 100644 --- a/src/Illuminate/Routing/Exceptions/StreamedResponseException.php +++ b/src/Illuminate/Routing/Exceptions/StreamedResponseException.php @@ -25,7 +25,7 @@ public function __construct(Throwable $originalException) { $this->originalException = $originalException; - parent::__construct($originalException->message); + parent::__construct($originalException->getMessage()); } /**