yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.37k stars 2.72k forks source link

Why not use 'code !== 0' instead of 'code >= 1' #9008

Open yulodl opened 7 months ago

yulodl commented 7 months ago

https://github.com/yarnpkg/yarn/blob/158d96dce95313d9a00218302631cd263877d164/src/util/child.js#L126

Now we found child process interupted without throw error

Or add verbose log to see the exact signal and code