diff --git a/html/do.php b/html/do.php
index 71f687dca..1ee017012 100644
--- a/html/do.php
+++ b/html/do.php
@@ -346,8 +346,9 @@ else
catch (Exception $exc)
{
echo $exc->getMessage();
+ record_log("No user profile ");
record_log($exc->getTraceAsString());
- throw $e;
+ throw $exc;
}
}