gh-slack icon indicating copy to clipboard operation
gh-slack copied to clipboard

Nicer error message if missing configuration

Open rubiojr opened this issue 9 months ago • 1 comments

Wraps the error to give a bit more context, from this:

❯ gh slack auth Error: could not find key "extensions"

To:

❯ gh slack auth Error: failed to read gh-slack configuration: could not find key "extensions"

rubiojr avatar May 03 '24 10:05 rubiojr

Oh nice, thanks! Is it also possible to include the path that it tries to load it from?

rneatherway avatar May 03 '24 10:05 rneatherway

I've had a go at that and the error message now reads like:

Error: failed to read gh-slack configuration value "extensions.slack.team" from "/Users/rneatherway/.config/gh/config.yml": could not find key "slack"

What do you think of that?

rneatherway avatar May 21 '24 09:05 rneatherway

Reads great, thanks for taking care of that!

rubiojr avatar May 24 '24 06:05 rubiojr