mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-41630 oauth: Throw exception instead of dying on error
This commit is contained in:
parent
ee788142f2
commit
0e6ee5e9e2
@ -228,9 +228,7 @@ class oauth_helper {
|
||||
// oauth_token_secret
|
||||
$result = $this->parse_result($content);
|
||||
if (empty($result['oauth_token'])) {
|
||||
// failed
|
||||
var_dump($result);
|
||||
exit;
|
||||
throw new moodle_exception('Error while requesting an oauth token');
|
||||
}
|
||||
// build oauth authrize url
|
||||
if (!empty($this->oauth_callback)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user