소스 검색

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;
     }