algolia / cli

🔍 Algolia’s official CLI devtool
https://www.algolia.com/doc/tools/cli
MIT License
101 stars 26 forks source link

profile/list: show errors in table listing instead of failing #145

Closed dhowden closed 4 months ago

dhowden commented 4 months ago

Without annotation the error is not helpful when you have multiple profiles.

Note: this also uses the AdminAPIKey, which might need another change to amend.

dhowden commented 4 months ago

FYI @helenamariano this from our conversation.

clemfromspace commented 4 months ago

Thanks for the PR @dhowden 👍

What do you think about gracefully failing, like displaying the error for the profile in the NB OF INDICES column instead? So we can, at the same time:

I'm happy to take over the PR if you don't have the time, let me know :)

dhowden commented 4 months ago

Hey @clemfromspace.

No worries, I've updated the change to put the error in the table as suggested. Happy for you to take it from here to get it over the line!