Skip to content

Commit 1a303cc

Browse files
committed
Fix sentry:test command not having correct exit code on success
1 parent 87c88c2 commit 1a303cc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Fix `sentry:test` command not having correct exit code on success
6+
57
## 2.10.1
68

79
- Fix compatibility with Laravel <= 6 of the `sentry:test` and `sentry:publish` commands

src/Sentry/Laravel/Console/TestCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function handle(): int
7676

7777
try {
7878
$clientBuilder = ClientBuilder::create([
79-
'dsn' => $dsn,
79+
'dsn' => $dsn,
8080
'traces_sample_rate' => 1.0,
8181
]);
8282
} catch (Exception $e) {
@@ -153,7 +153,7 @@ public function log($level, $message, array $context = []): void
153153

154154
error_reporting($old_error_reporting);
155155

156-
return 1;
156+
return 0;
157157
}
158158

159159
/**

0 commit comments

Comments
 (0)