Commit afe4d1ff authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Better error reporting on xmlrpc config form (bug #616840)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 81afdc24
......@@ -865,7 +865,10 @@ class PluginAuthXmlrpc extends PluginAuth {
$peer->bootstrap($values['wwwroot'], null, $values['appname'], $values['institution']);
} catch (RemoteServerException $e) {
log_debug($e->getMessage());
$form->set_error('wwwroot',get_string('cantretrievekey', 'auth'));
$form->set_error('wwwroot',get_string('cantretrievekey', 'auth') . '<br>' . $e->getMessage());
} catch (ParamOutOfRangeException $e) {
log_debug($e->getMessage());
$form->set_error('wwwroot',get_string('cantretrievekey', 'auth') . '<br>' . $e->getMessage());
}
}
else if ($values['institution'] != $peer->institution) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment