You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Sentry/Laravel/Features/ConsoleSchedulingIntegration.php
+24-13Lines changed: 24 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -74,8 +74,8 @@ public function register(): void
74
74
?int$recoveryThreshold = null
75
75
) use ($startCheckIn, $finishCheckIn) {
76
76
/** @var SchedulingEvent $this */
77
-
if ($monitorSlug === null && $this->command === null) {
78
-
thrownewRuntimeException('The command string is null, please set a slug manually for this scheduled command using the `sentryMonitor(\'your-monitor-slug\')` macro.');
77
+
if ($monitorSlug === null && empty($this->command) && empty($this->description)) {
78
+
thrownewRuntimeException('The command and description are not set, please set a slug manually for this scheduled command using the `sentryMonitor(\'your-monitor-slug\')` macro.');
0 commit comments