1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Improved Exception handling, Removed npm requirement for testing

This commit is contained in:
Dan Brown
2016-09-03 12:08:58 +01:00
parent 0dbb8babee
commit ec17bd8608
7 changed files with 50 additions and 30 deletions

View File

@ -158,7 +158,7 @@ class SocialAuthService
$driver = trim(strtolower($socialDriver));
if (!in_array($driver, $this->validSocialDrivers)) abort(404, 'Social Driver Not Found');
if (!$this->checkDriverConfigured($driver)) throw new SocialDriverNotConfigured;
if (!$this->checkDriverConfigured($driver)) throw new SocialDriverNotConfigured("Your {$driver} social settings are not configured correctly.");
return $driver;
}