We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 248bc07 commit e9d78e5Copy full SHA for e9d78e5
lib/upload.js
@@ -38,7 +38,11 @@ module.exports = {
38
39
reader.addIgnoreRules(ignoreRules);
40
41
- reader.pipe(tar.Pack())
+ reader.on('error', function(err) {
42
+ console.log(chalk.red('READ ERROR') + ' - Could not read directory. Remove' +
43
+ ' symbolic links / shortcuts and try again.');
44
+ process.exit(1);
45
+ }).pipe(tar.Pack())
46
.pipe(zlib.createGzip())
47
.pipe(writeStream);
48
0 commit comments