Added a custom check for "401 Unauthorized" response, to print a more helpful error message
<HTTP Method> request to <URL> was not authorized. Make sure you are logged in.
instead of
dcos-beta-spark: error: invalid character '<' looking for beginning of value, try --help
How were these changes tested?
Manually tested
Added a unit test for CLI change
Release Notes
[Bugfix] Improved error message in CLI when not logged into a cluster
@rpalaznik, can you please update the PR description to be on par with other merged PRs? It is also missing the 'Release Notes' section which comes very handy when we prepare release docs.
What changes were proposed in this pull request?
Resolves [DCOS-33745] - Unhelpful error message in CLI when not logged in (https://jira.mesosphere.com/browse/DCOS-33745)
<HTTP Method> request to <URL> was not authorized. Make sure you are logged in.
instead ofdcos-beta-spark: error: invalid character '<' looking for beginning of value, try --help
How were these changes tested?
Release Notes