diff --git a/spoon/exception/exception.php b/spoon/exception/exception.php index 3642760..312d92d 100644 --- a/spoon/exception/exception.php +++ b/spoon/exception/exception.php @@ -181,6 +181,7 @@ function getOutput($exception) { // specific name $name = (method_exists($exception, 'getName')) ? $exception->getName() : get_class($exception); + $userAgent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '(Unknown)'; // generate output $output = '