Skip to content

Commit 6d1abc9

Browse files
committed
store entire stack trace after error instead of message
1 parent 8895fc6 commit 6d1abc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function markAsFailed(Exception $exception)
317317
$this->update([
318318
'sending' => 0,
319319
'failed' => 1,
320-
'error' => $exception->getMessage(),
320+
'error' => (string) $exception,
321321
]);
322322
}
323323

tests/SendEmailsCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function if_an_email_fails_to_be_sent_it_should_be_logged_in_the_database()
7272
$this->artisan('email:send');
7373

7474
$this->assertTrue($email->fresh()->hasFailed());
75-
$this->assertEquals('Simulating some random error', $email->fresh()->getError());
75+
$this->assertContains('Simulating some random error', $email->fresh()->getError());
7676
}
7777

7878
/** @test */

0 commit comments

Comments
 (0)