Last active
February 25, 2020 18:19
-
-
Save yurynix/5950e4906c63d015419016188d3c2321 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
await downloadAndExtract(…); | |
} catch (ex) { | |
const errorMessage = ex.message; | |
if (errorMessage.indexOf('ENOSPC') > -1) { | |
console.log('Got ENOSPC! Check out df output:\n', await exec('df -h')); | |
} | |
throw ex; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment