kevin пре 4 месеци
родитељ
комит
8b7a0b0a5f

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