diff --git a/framework/Rpc/lib/Horde/Rpc/ActiveSync.php b/framework/Rpc/lib/Horde/Rpc/ActiveSync.php index aae49eea349..4259993aa83 100644 --- a/framework/Rpc/lib/Horde/Rpc/ActiveSync.php +++ b/framework/Rpc/lib/Horde/Rpc/ActiveSync.php @@ -149,18 +149,21 @@ public function getResponse($request) } } catch (Horde_ActiveSync_Exception_InvalidRequest $e) { $this->_logger->err(sprintf( - 'Returning HTTP 400 while handling %s command', $this->_get['Cmd'])); + 'Returning HTTP 400 while handling %s command. Error is: %s', + $this->_get['Cmd'], $e->getMessage())); $this->_handleError($e); - header('HTTP/1.1 400 Invalid Request ' . $e->getMessage()); + header('HTTP/1.1 400 Invalid Request'); exit; } catch (Horde_Exception_AuthenticationFailure $e) { $this->_sendAuthenticationFailedHeaders(); exit; } catch (Horde_Exception $e) { $this->_logger->err(sprintf( - 'Returning HTTP 500 while handling %s command.', $this->_get['Cmd'])); + 'Returning HTTP 500 while handling %s command. Error is: %s', + $this->_get['Cmd'], + $e->getMessage())); $this->_handleError($e); - header('HTTP/1.1 500 ' . $e->getMessage()); + header('HTTP/1.1 500'); exit; } break;