kevin 1 년 전
부모
커밋
8b7a0b0a5f
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      common/models/forms/ApproachDeclarationForm.php
  2. 1 1
      common/models/forms/ApproachDeclarationLoopForm.php

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

@@ -726,7 +726,7 @@ class ApproachDeclarationForm extends Model
                 return $decResult;
                 return $decResult;
             } catch (\Exception $e) {
             } catch (\Exception $e) {
 //                throw new Exception(Form::formatErrorsForApi($e->getFile() . ' ' . $e->getLine() . ' ' . $e->getMessage()));
 //                throw new Exception(Form::formatErrorsForApi($e->getFile() . ' ' . $e->getLine() . ' ' . $e->getMessage()));
-                throw new Exception(Form::formatErrorsForApi($e->getMessage()));
+                throw new Exception(Form::formatErrorsForApi($e->getMessage() . ', ' . $e->getFile() . '(' . $e->getLine() . ')'));
             }
             }
         }
         }
         return true;
         return true;

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

@@ -219,7 +219,7 @@ class ApproachDeclarationLoopForm extends Model
             return $result;
             return $result;
         } catch (\Exception $e){
         } catch (\Exception $e){
             $transaction->rollBack();
             $transaction->rollBack();
-            $this->addError('add', $e->getMessage());
+            $this->addError('add', $e->getMessage() . '; ' . $e->getLine() . '; ' . $e->getFile());
             return null;
             return null;
         }
         }
     }
     }