Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure whoami failures (i.e. present but broken tokens) at startup don't break commands #675
Right now, if your token is invalid - i.e. expired, or for the wrong service (staging vs prod) or somehow corrupted - then every command fails, including
Another excellent idea
Done, in the definition of trackCommand itself rather than the calling code, since nobody should ever be waiting on that.
I've also added a timeout, so if it works but it's just a bit slow, we don't wait around. Thought about not waiting for the promise at all, but it'd be nice to increase the odds we'll get events for commands that run pretty quickly (