Revision: 2123
Author: olavmrk
Date: Fri Jan 22 01:11:55 2010
Log: _include: Make the generic exception handler handle errors.
http://code.google.com/p/simplesamlphp/source/detail?r=2123
Modified:
/trunk/www/_include.php
=======================================
--- /trunk/www/_include.php Tue Jan 5 06:26:30 2010
+++ /trunk/www/_include.php Fri Jan 22 01:11:55 2010
@@ -27,8 +27,13 @@
/* Show error page on unhandled exceptions. */
function SimpleSAML_exception_handler(Exception $exception) {
- $e = new SimpleSAML_Error_Error('UNHANDLEDEXCEPTION', $exception);
- $e->show();
+
+ if ($exception instanceof SimpleSAML_Error_Error) {
+ $exception->show();
+ } else {
+ $e = new SimpleSAML_Error_Error('UNHANDLEDEXCEPTION',
$exception);
+ $e->show();
+ }
}
set_exception_handler('SimpleSAML_exception_handler');
--
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en.