Skip to content

Commit

Permalink
fix: gracefully ‘No space left on device'
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jul 2, 2019
1 parent f037975 commit e3eeb46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/workers/repository/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ async function handleError(config, err) {
delete config.branchList; // eslint-disable-line no-param-reassign
return err.message;
}
if (err.message === 'disk-space') {
if (
err.message.includes('No space left on device') ||
err.message === 'disk-space'
) {
logger.error('Disk space error - skipping');
delete config.branchList; // eslint-disable-line no-param-reassign
return err.message;
Expand Down

0 comments on commit e3eeb46

Please sign in to comment.