Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alchemyguy committed Nov 30, 2020
1 parent 952385b commit 9e26d42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 0 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@
}
],
"require": {
"illuminate/support": "~5.1",
"php": "~5.6|~7.0",
"google/apiclient": "^2.0"
},
"require-dev": {
"phpunit/phpunit": ">=5.4.3",
"squizlabs/php_codesniffer": "^2.3"
},
"autoload": {
Expand All @@ -31,7 +28,6 @@
}
},
"scripts": {
"test": "phpunit",
"check-style":
"phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
"fix-style":
Expand Down
7 changes: 5 additions & 2 deletions src/AuthenticateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ protected function liveStreamTest($token) {
return true;

} catch (\Google_Service_Exception $e) {

throw new Exception($e->getMessage(), 1);
/**
* This error is thrown if the Service is
* either not available or not enabled for the specific account
*/
return false;

} catch (\Google_Exception $e) {

Expand Down

0 comments on commit 9e26d42

Please sign in to comment.