Author:   Lars Michelsen <[email protected]>
Date:     Sun Sep  4 14:31:57 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sun Sep  4 14:31:57 2011 +0200

Fixed ajax php error handling

---

 share/server/core/ajax_handler.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/share/server/core/ajax_handler.php 
b/share/server/core/ajax_handler.php
index 1173401..3dd20f9 100644
--- a/share/server/core/ajax_handler.php
+++ b/share/server/core/ajax_handler.php
@@ -64,6 +64,12 @@ try {
     exit(0);
 } catch(NagVisException $e) {
     echo $e;
+} catch(NagVisErrorException $e) {
+    echo json_encode(Array(
+        'type'    => 'error',
+        'message' => "".$e,
+        'title'   => l('PHP ERROR'),
+    ));
 } catch(Exception $e) {
     echo json_encode(Array(
         'type'    => 'error',


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to