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.
1 parent e2cf4f4 commit ac59f68Copy full SHA for ac59f68
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