浏览代码

feat: NG-15: 新会员注册时增加国家与语言选项.

kevin 1 年之前
父节点
当前提交
27a5138a4b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/models/forms/UserBasicForm.php

+ 1 - 1
common/models/forms/UserBasicForm.php

@@ -229,7 +229,7 @@ class UserBasicForm extends Model {
             ]);
         }catch (Exception $e) {
             $transaction->rollBack();
-            throw new Exception($userModel->getErrors());
+            throw new Exception($e->getFile() . ' ' . $e->getLine() . ' ' . $e->getMessage());
         }
         return $userModel;
     }