kevin 4 ماه پیش
والد
کامیت
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;
             } catch (\Exception $e) {
 //                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;

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

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