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

fix: throw error if lerna out of disk space

parent e011d95e
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
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