Skip to content

Commit

Permalink
Fixed source param
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkotikkanen committed Feb 14, 2017
1 parent 5449fe4 commit 1c6a493
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/codepipeline-s3-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const packageAndUpload = require('../libs/packageAndUpload');

program
.version(pckg.version)
.option('-S, --source <pattern>', 'pattern for source files')
.option('-S, --source-files <pattern>', 'pattern for source files')
.option('-B, --target-bucket <S3 bucket name>', 'target S3 bucket name')
.option('-K, --target-key <S3 file key>', 'target S3 file key')
.parse(process.argv);
Expand Down
2 changes: 1 addition & 1 deletion libs/packageAndUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const packageAndUpload = function workFunction(argv, callback) {

// Do sanity checks
if (files.length === 0) {
return done(new Error(`No source files found. ("argv.sourceFiles")`));
return done(new Error(`No source files found. ("${argv.sourceFiles}")`));
}
if (files.length > 50) {
return done(
Expand Down

0 comments on commit 1c6a493

Please sign in to comment.