File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 44
55use Illuminate \Console \Command ;
66use Madewithlove \LaravelDebugConsole \Renderers \RenderersFactory ;
7+ use Illuminate \Contracts \Filesystem \FileNotFoundException ;
78use Madewithlove \LaravelDebugConsole \StorageRepository ;
89use React \EventLoop \Factory ;
910
@@ -68,7 +69,14 @@ public function handle()
6869 $ this ->sections = RenderersFactory::create ($ this ->input , $ this ->output );
6970
7071 $ this ->loop ->addPeriodicTimer (1 , function () {
71- $ data = $ this ->repository ->latest ();
72+ try {
73+ $ data = $ this ->repository ->latest ();
74+ } catch (FileNotFoundException $ e ) {
75+ $ this ->clear ();
76+ $ this ->error ('No laravel debugbar storage files found. ' );
77+
78+ return ;
79+ }
7280
7381 // Checks if its a new request
7482 if (!$ this ->isNewRequest ($ data )) {
You can’t perform that action at this time.
0 commit comments