noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 246/323: Javascript : improve exception manag


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 246/323: Javascript : improve exception management for fill_box
Date: Wed, 14 Mar 2018 17:38:59 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 09af70e7965fd48465e780a97557aec0b11a9bfd
Author: Dany De Bontridder <address@hidden>
Date:   Sat Feb 24 10:52:25 2018 +0100

    Javascript : improve exception management for fill_box
---
 html/js/scripts.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/html/js/scripts.js b/html/js/scripts.js
index 5634fb5..56d914c 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -1200,11 +1200,19 @@ function fill_box(req)
     }
     catch (e) {
         alert_box(e.message);
+         if (console) {
+            console.error(e);
+            console.error("log answer = "+q.responseText);
+        }
     }
     try {
         code_html.evalScripts();
     }
     catch (e) {
+        if (console) {
+            console.error(e);
+            console.error("log answer = "+q.responseText);
+        }
         alert_box("Impossible executer script de la reponse\n" + e.message);
     }
 



reply via email to

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