-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error output must be added to stdout when using --json #568
Comments
Hi @AllanOricil ! Thanks for this enhancement and thanks for contributing in making this project better! I think it is somehow related to this enhancement as well. I do not know yet how we will treat this as a whole, but we definitely need to be compliant with the standard sfdx output behavior (which is not the case currently). One way I was thinking about was to deal with this behavior compliance when migrating to For the warning in the error attribute, that is a very good point, nice catch, I'll try to work on that soon. |
@scolladon this git warning message is displayed when you try to fetch a ref from remote and map it to a local ref that already exists in any other ref namespace:
for instance:
I think you should try/catch this error because Git does not exit with error when this message is displayed |
@scolladon this error happens because Im using a single command to fetch both "from" and "to" at the same time.
when I did this way to avoid having to treat tags and branches differently, and to fetch exactly only what is necessary for SGD to compute the delta |
Shipped in release $ sfdx plugins:install sfdx-git-delta@latest-rc
$ sfdx plugins:install [email protected] |
Is your proposal related to a problem?
every other sfdx command send error messages to stdout when using --json, but sgd does not
edit: I noticed that there is a warning message in the error key, instead of being in the warnings array. I think this is confusing.
Actual Output
Expected Output
The text was updated successfully, but these errors were encountered: