Improve error message in case of missing ACL
ychuzevi opened this issue · 0 comments
ychuzevi commented
When calling Diplomat::Agent.services
with an invalid token, the error currently displayed is Diplomat::PathNotFound
with no additional information.
Consul is actually returning an HTTP 403 error with message ACL not found
in such case.
In order to facilitate debugging, it would be great if Diplomat could return a more specific error and include the error message identifying that the ACL is invalid.