Skip to content
This repository has been archived by the owner on Jan 30, 2022. It is now read-only.

Provide error message when performing backlog:checkin #50

Open
bferguso opened this issue Jan 20, 2021 · 0 comments
Open

Provide error message when performing backlog:checkin #50

bferguso opened this issue Jan 20, 2021 · 0 comments

Comments

@bferguso
Copy link

When performing a backlog:checkin without any committed changes, it fails without providing an error message explaining why.
The current error message returned is:

info: Retrieving credentials from git credentential helper (osxkeychain) for 'https://bwa.nrs.gov.bc.ca/int/jira/rest/api/2/myself' {"category":"SecretManager","timestamp":"2021-01-20T22:16:04.863Z"}
expectedCurrentTrackingBranchName origin/feature/FFS-277
    TypeError: Cannot read property 'branches' of undefined
npm ERR! code 1
npm ERR! path /Users/brett/work/repo/git/ffs/tmp/ffs-ear-277
npm ERR! command failed
npm ERR! command sh -c nrdk backlog:checkin

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/brett/.npm/_logs/2021-01-20T22_16_06_778Z-debug.log

A more appropriate error message might be something like "No changes to check in."

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant