ruby-amqp / rabbitmq_http_api_client

RabbitMQ HTTP API client for Ruby
MIT License
79 stars 49 forks source link

Not able to detect 401 unauthorised #20

Closed tetherit closed 9 years ago

tetherit commented 9 years ago

When I run client.overview, I can see in stderr: "Faraday::ClientError: the server responded with status 401"

I cannot find a programatic way of accessing this however. It would be great if this gem raised an exception for authentication errors or provide some other way to detect this.

tetherit commented 9 years ago

Oh, sorry, pry just hid this, my mistake - it does raise an exception as expected!