We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8895fc6 commit 6d1abc9Copy full SHA for 6d1abc9
src/Email.php
@@ -317,7 +317,7 @@ public function markAsFailed(Exception $exception)
317
$this->update([
318
'sending' => 0,
319
'failed' => 1,
320
- 'error' => $exception->getMessage(),
+ 'error' => (string) $exception,
321
]);
322
}
323
tests/SendEmailsCommandTest.php
@@ -72,7 +72,7 @@ function if_an_email_fails_to_be_sent_it_should_be_logged_in_the_database()
72
$this->artisan('email:send');
73
74
$this->assertTrue($email->fresh()->hasFailed());
75
- $this->assertEquals('Simulating some random error', $email->fresh()->getError());
+ $this->assertContains('Simulating some random error', $email->fresh()->getError());
76
77
78
/** @test */
0 commit comments