bcgov / bcgov/gwa-cli

Provide more information in error messages and from `--debug`

Open
#102 0 comments 0 reactions 0 assignees View on GitHub
jira
Dominant language
Go
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

As a API provider using the CLI, I need detailed error messages available so I can identify issues when trying to apply configuration.

Currently, the message is often limited to `"error": "something went wrong"` which leaves the user in the dark on what the actual problem is. At the least, just return the API response if there is not a more specific or detailed message when `--debug` is on.

## Poor error message cases

Compiling a list of cases with poor error messages to look at what we want to handle better may be a useful aid.

- trying to enable a dataset where org doesn't match the Gateway
- `something broke`
- invalid Product name (contains underscore)
- `something broke`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.