Feature Request: improved access denied error

When a user attempts to do something that they haven’t been granted, they are successfully denied, but with the following error message. Could the short error message be improved to something more readable?

An error was encountered

Please [submit an issue] to help resolve this problem.
Reloading the page may be required to recover.

Error: GraphQL error: request unauthorized
at new ApolloError (http://sensu/static/js/vendor_4420.js:97:183531)
at Object.next (http://sensu/static/js/vendor_4420.js:97:201710)
at notifySubscription (http://sensu/static/js/vendor_4420.js:112:26071)
at onNotify (http://sensu/static/js/vendor_4420.js:112:26687)
at SubscriptionObserver.next (http://sensu/static/js/vendor_4420.js:112:27501)
at http://sensu/static/js/vendor_4420.js:97:199224
at Set.forEach ()
at Object.next (http://sensu/static/js/vendor_4420.js:97:199187)
at notifySubscription (http://sensu/static/js/vendor_4420.js:112:26071)
at onNotify (http://sensu/static/js/vendor_4420.js:112:26687)
at SubscriptionObserver.next (http://sensu/static/js/vendor_4420.js:112:27501)
at notifySubscription (http://sensu/static/js/vendor_4420.js:112:26071)
at onNotify (http://sensu/static/js/vendor_4420.js:112:26687)
at SubscriptionObserver.next (http://sensu/static/js/vendor_4420.js:112:27501)
at notifySubscription (http://sensu/static/js/vendor_4420.js:112:26071)
at onNotify (http://sensu/static/js/vendor_4420.js:112:26687)

1 Like