noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 22/44: Exception rethrow


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 22/44: Exception rethrow
Date: Wed, 26 Dec 2018 04:29:54 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 2d0da8b05b1a98823eab06ddc6fd23ca74d3d5ac
Author: Dany De Bontridder <address@hidden>
Date:   Mon Nov 26 15:18:15 2018 +0100

    Exception rethrow
---
 html/do.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/html/do.php b/html/do.php
index 0278416..71f687d 100644
--- a/html/do.php
+++ b/html/do.php
@@ -311,10 +311,12 @@ if (isset($_REQUEST['ac']))
             echo '<a class="button" href="do.php?'.Dossier::get().'">';
             echo _('Retour');
             echo '</a>';
+            return;
         }
         else {
             alert($e->getMessage());
             record_log($e->getTraceAsString());
+            throw $e;
         }
     }
 }
@@ -345,6 +347,7 @@ else
     {
         echo $exc->getMessage();
         record_log($exc->getTraceAsString());
+        throw $e;
     }
     
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]