kevin_zhangl пре 2 година
родитељ
комит
62701da7eb

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

@@ -703,7 +703,8 @@ 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->getFile() . ' ' . $e->getLine() . ' ' . $e->getMessage()));
+                throw new Exception(Form::formatErrorsForApi($e->getMessage()));
             }
         }
         return true;

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

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