Skip to content
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

fix(docz-core): prevent false positive CLI error code #1332

Merged
merged 1 commit into from
Dec 17, 2019
Merged

fix(docz-core): prevent false positive CLI error code #1332

merged 1 commit into from
Dec 17, 2019

Conversation

adbayb
Copy link
Contributor

@adbayb adbayb commented Dec 17, 2019

Description

Following this PR #1319, I noticed that npm could use stderr file descriptor to write warning messages (which are not considered as error). Consecuently, we could have in this case false positives error code like this (please focus on status value and stderr output):

Capture d’écran 2019-12-17 à 11 53 39

Relying on spawn.status exit success value is more reliable.

@rakannimer
Copy link
Contributor

Makes sense, nice catch 👍

@rakannimer rakannimer merged commit 1437b59 into doczjs:master Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants