kabanero-io / kabanero-command-line-services

This repo will be archived soon.
Apache License 2.0
3 stars 7 forks source link

Error message improvements when apiURL is not correct #186

Closed mtamboli closed 4 years ago

mtamboli commented 4 years ago

Below error condition happens when the apiURL provided for GitHub is incorrect. It will be helpful to give a more clear error message to user for debugging purposes.

./kabanero login  <server> -u <user>
Password:
login failed, you may want to check your authorization configuration. Check the CLI Service pod for more information.

But as suggested, I look at the CLI pod and the message is as below.

[err] An error occurred. An error occurred during authentication for user Unexpected char 60 at (line no=1, column no=1, offset=0)
{message=An internal error occurred.}

Can we elaborate/enhance this message to be more specific and helpful?

mtamboli commented 4 years ago

cli_0506.log

davco01a commented 4 years ago

fixed by: https://github.com/kabanero-io/kabanero-command-line-services/pull/188