File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,12 @@ public function __construct(protected QueueConfig $config)
40
40
if (! $ this ->redis ->connect ($ config ->redis ['host ' ], ($ config ->redis ['host ' ][0 ] === '/ ' ? 0 : $ config ->redis ['port ' ]), $ config ->redis ['timeout ' ])) {
41
41
throw new CriticalError ('Queue: Redis connection failed. Check your configuration. ' );
42
42
}
43
+ if (isset ($ config ->redis ['username ' ], $ config ->redis ['password ' ]) && ! $ this ->redis ->auth ([$ config ->redis ['username ' ], $ config ->redis ['password ' ]])) {
44
+ throw new CriticalError ('Queue: Redis authentication failed. Check your username and password. ' );
45
+ }
43
46
44
47
if (isset ($ config ->redis ['password ' ]) && ! $ this ->redis ->auth ($ config ->redis ['password ' ])) {
45
- throw new CriticalError ('Queue: Redis authentication failed. ' );
48
+ throw new CriticalError ('Queue: Redis authentication failed. Check your password. ' );
46
49
}
47
50
48
51
if (isset ($ config ->redis ['database ' ]) && ! $ this ->redis ->select ($ config ->redis ['database ' ])) {
You can’t perform that action at this time.
0 commit comments