We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d1348fa4 authored by Jørgen Bøhnsdalen's avatar Jørgen Bøhnsdalen

Fixed second try / catch block

parent f5838b05
......@@ -125,8 +125,10 @@ if(isset($_POST['register'])) {
}
catch (exception $e) {
reportError('Create user, insert, register.php', $e->getMessage());
$errors .= 'An error occurred.';
$smarty->assign('errors', $errors);
$errors .= 'An error occurred.';
$details = $e->getMessage();
$smarty->assign('error', $errors);
$smarty->assign('details', $details);
$smarty->display('error.tpl');
die();
}
......
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