adobe / adobe/aio-cli-plugin-aem-rde
Log login exception with context "aio-cli-plugin-cloudmanager"
- Dominant language
- JavaScript
- Stars
- 8
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
Currently the code in [getTokenAndKey](https://github.com/adobe/aio-cli-plugin-aem-rde/blob/dff04b71a21375d4d489d04a195e61e7a8dbd0c2/src/lib/base-command.js#L52C1-L52C1) silently catches all exceptions and falls back to the context `cli`.
That makes it close to impossible to debug issues with the context `aio-cli-plugin-cloudmanager`. Therefore I would suggest the following:
Only fall back to `cli` if there is no config at all for `aio-cli-plugin-cloudmanager` and pass the original exception to the caller otherwise.
Contributor guide
Research direction
Start in src/lib/base-command.js at getTokenAndKey, linked from the issue. Inspect how exceptions and the aio-cli-plugin-cloudmanager configuration are handled, then verify that the cli fallback occurs only when no configuration exists and that other exceptions reach the caller.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100