projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69f9b6c
)
Catch exceptions.
author
Jan Schneider
<jan@horde.org>
Mon, 8 Feb 2010 22:39:37 +0000
(23:39 +0100)
committer
Jan Schneider
<jan@horde.org>
Mon, 8 Feb 2010 22:39:37 +0000
(23:39 +0100)
horde/services/ajax.php
patch
|
blob
|
history
diff --git
a/horde/services/ajax.php
b/horde/services/ajax.php
index
9d469ea
..
c17aba8
100644
(file)
--- a/
horde/services/ajax.php
+++ b/
horde/services/ajax.php
@@
-53,7
+53,12
@@
try {
ob_start();
$ajax = Horde_Ajax::getInstance($app, $action);
-$result = $ajax->doAction();
+try {
+ $result = $ajax->doAction();
+} catch (Exception $e) {
+ $notification->push($e->getMessage(), 'horde.error');
+ $result = null;
+}
// Clear the output buffer that we started above, and log any unexpected
// output at a DEBUG level.