Skip to content

Commit a97d7b4

Browse files
committed
update failover message
1 parent 075541a commit a97d7b4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Illuminate/Queue/FailoverQueue.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Contracts\Events\Dispatcher as EventDispatcher;
66
use Illuminate\Contracts\Queue\Queue as QueueContract;
77
use Illuminate\Queue\Events\QueueFailedOver;
8+
use RuntimeException;
89
use Throwable;
910

1011
class FailoverQueue extends Queue implements QueueContract
@@ -97,7 +98,7 @@ public function push($job, $data = '', $queue = null)
9798
}
9899
}
99100

100-
throw $lastException ?? new \RuntimeException('No available connections to push the job.');
101+
throw $lastException ?? new RuntimeException('All failover queue connections failed.');
101102
}
102103

103104
/**
@@ -119,7 +120,7 @@ public function pushRaw($payload, $queue = null, array $options = [])
119120
}
120121
}
121122

122-
throw $lastException ?? new \RuntimeException('No available connections to push the raw payload.');
123+
throw $lastException ?? new RuntimeException('All failover queue connections failed.');
123124
}
124125

125126
/**
@@ -144,7 +145,7 @@ public function later($delay, $job, $data = '', $queue = null)
144145
}
145146
}
146147

147-
throw $lastException ?? new \RuntimeException('No available connections to schedule the job.');
148+
throw $lastException ?? new RuntimeException('All failover queue connections failed.');
148149
}
149150

150151
/**

0 commit comments

Comments
 (0)