Skip to content
Snippets Groups Projects
Commit b7a01d39 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(npm): check res.stderr

parent 3725417f
No related branches found
No related tags found
No related merge requests found
......@@ -583,12 +583,9 @@ export async function getAdditionalFiles(
config.binarySource
);
// istanbul ignore else
if (res.error) {
if (res.stderr) {
// istanbul ignore if
if (
res.stderr &&
res.stderr.includes('ENOSPC: no space left on device')
) {
if (res.stderr.includes('ENOSPC: no space left on device')) {
throw new Error(SYSTEM_INSUFFICIENT_DISK_SPACE);
}
for (const upgrade of config.upgrades) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment