diff --git a/lib/workers/branch/lock-files.js b/lib/workers/branch/lock-files.js
index 0572e505878fa21533d689a9c12d3d9dd7df7f93..f361f53d612ae24ce62060fdc508da50fbe10762 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,