Added error message from server for easier debugging

When I implemented my jsonrpc server this small patch was very usefull for debugging.