We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2cf4f4 + ac59f68 commit 52b6beeCopy full SHA for 52b6bee
src/Console/ClearCommand.php
@@ -19,9 +19,17 @@ public function __construct(DebugBar $debugbar)
19
public function fire()
20
{
21
$this->debugbar->boot();
22
-
+
23
if ($storage = $this->debugbar->getStorage()) {
24
- $storage->clear();
+ try
25
+ {
26
+ $storage->clear();
27
+ } catch(\InvalidArgumentException $e) {
28
+ // hide InvalidArgumentException if storage location does not exist
29
+ if(strpos($e->getMessage(), 'does not exist') === false) {
30
+ throw $e;
31
+ }
32
33
$this->info('Debugbar Storage cleared!');
34
} else {
35
$this->error('No Debugbar Storage found..');
0 commit comments