{"action":"opened","issue":{"url":"https://api.github.com/repos/rinvex/themes/issues/3","repository_url":"https://api.github.com/repos/rinvex/themes","labels_url":"https://api.github.com/repos/rinvex/themes/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rinvex/themes/issues/3/comments","events_url":"https://api.github.com/repos/rinvex/themes/issues/3/events","html_url":"https://github.com/rinvex/themes/issues/3","id":142023130,"number":3,"title":"[Insight] Error silenced by the at sign (@) - in src/…/Commands/ThemeCompileCommand.php, line 99","user":{"login":"Omranic","id":406705,"avatar_url":"https://avatars.githubusercontent.com/u/406705?v=3","gravatar_id":"","url":"https://api.github.com/users/Omranic","html_url":"https://github.com/Omranic","followers_url":"https://api.github.com/users/Omranic/followers","following_url":"https://api.github.com/users/Omranic/following{/other_user}","gists_url":"https://api.github.com/users/Omranic/gists{/gist_id}","starred_url":"https://api.github.com/users/Omranic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Omranic/subscriptions","organizations_url":"https://api.github.com/users/Omranic/orgs","repos_url":"https://api.github.com/users/Omranic/repos","events_url":"https://api.github.com/users/Omranic/events{/privacy}","received_events_url":"https://api.github.com/users/Omranic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-19T03:38:45Z","updated_at":"2016-03-19T03:38:45Z","closed_at":null,"body":"**[in src/Console/Commands/ThemeCompileCommand.php, line 99](https://github.com/rinvex/themes/blob/85df38dbd6790eede67a23da02ada91e3e7a0e19/src/Console/Commands/ThemeCompileCommand.php#L99)**\r\n\r\n> Adding \"@\" before `$this->laravel['router']->dispatch($request)` prevents warning and errors during this function execution from being displayed.\r\nIf you need to do that, you should probably implement a better way to qualify and recover from errors, using Exceptions.\r\n\r\n```php\r\n            $progress->advance();\r\n\r\n            try {\r\n                $request = $this->laravel['request']->create($uri, 'GET');\r\n\r\n                @$this->laravel['router']->dispatch($request);\r\n            } catch (Exception $e) {\r\n            }\r\n        }\r\n\r\n        $progress->finish();\r\n```\r\n\r\n---------------------\r\n\r\n_Posted from [SensioLabsInsight](https://insight.sensiolabs.com/projects/42c7a27b-ae54-4e6d-ad89-c5f91dc07e36/analyses/2)_"}}