From 5c6139f030d99f73dbb093e278590231e8a44c07 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Tue, 27 Feb 2018 19:05:00 +0100 Subject: [PATCH] fix: throw error if lerna out of disk space --- lib/workers/branch/lock-files.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/workers/branch/lock-files.js b/lib/workers/branch/lock-files.js index 0572e50587..f361f53d61 100644 --- a/lib/workers/branch/lock-files.js +++ b/lib/workers/branch/lock-files.js @@ -445,6 +445,13 @@ async function getUpdatedLockFiles(config) { const res = await lerna.generateLockFiles(manager, config.tmpDir.path, env); // istanbul ignore else if (res.error) { + // istanbul ignore if + if ( + res.stderr && + res.stderr.includes('ENOSPC: no space left on device') + ) { + throw new Error('Out of disk space when generating yarn.lock'); + } lockFileErrors.push({ lockFile, stderr: res.stderr, -- GitLab