Skip to content

Commit b5677f4

Browse files
committed
fix(commands): improve exception notification warning details
- Update warning message to provide clearer guidance on related configuration. - Add a bullet list of configuration keys to help identify where adjustments are needed.
1 parent 4b1552e commit b5677f4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/Commands/TestCommand.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,15 @@ public function handle(ExceptionNotifyManager $exceptionNotifyManager): int
6060

6161
if (!$exceptionNotifyManager->shouldReport($runtimeException)) {
6262
$this->components->warn(\sprintf(
63-
'The exception [%s] should not be reported, please check the configuration.',
63+
'The exception [%s] should not be reported, please check the related configuration:',
6464
$this->warned($runtimeException::class),
6565
));
6666

67+
$this->components->bulletList([
68+
'exception-notify.environments',
69+
'exception-notify.rate_limiter',
70+
]);
71+
6772
return self::INVALID;
6873
}
6974

@@ -87,7 +92,11 @@ public function handle(ExceptionNotifyManager $exceptionNotifyManager): int
8792
if (!Utils::isSyncJobConnection()) {
8893
$this->components->warn(\sprintf(
8994
'Or please ensure that the queue is working [%s].',
90-
$this->warned(\sprintf('php artisan queue:work %s --queue=%s', Utils::jobConnection(), Utils::jobQueue()))
95+
$this->warned(\sprintf(
96+
'php artisan queue:work %s --queue=%s --ansi -v',
97+
Utils::jobConnection(),
98+
Utils::jobQueue()
99+
))
91100
));
92101
}
93102

0 commit comments

Comments
 (0)