1
0
Fork 0

Revert change in logging

pull/136/head
Felix Becker 2016-11-06 18:41:42 +01:00
parent 1080d63fcf
commit fdb3d4bb6f
1 changed files with 6 additions and 1 deletions

View File

@ -81,7 +81,12 @@ class LanguageServer extends AdvancedJsonRpc\Dispatcher
$error = $e; $error = $e;
} catch (Throwable $e) { } catch (Throwable $e) {
// If an unexpected error occured, send back an INTERNAL_ERROR error response // If an unexpected error occured, send back an INTERNAL_ERROR error response
$error = new AdvancedJsonRpc\Error((string)$e, AdvancedJsonRpc\ErrorCode::INTERNAL_ERROR, null, $e); $error = new AdvancedJsonRpc\Error(
$e->getMessage(),
AdvancedJsonRpc\ErrorCode::INTERNAL_ERROR,
null,
$e
);
} }
// Only send a Response for a Request // Only send a Response for a Request
// Notifications do not send Responses // Notifications do not send Responses