Navigation Menu

Skip to content

Commit

Permalink
Fix handling of missing "source" option
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 9, 2012
1 parent 9b94b8b commit 14092b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/gcs-post-sdf
Expand Up @@ -18,13 +18,13 @@ commandLine
commandLine.assertHaveDomainName();
commandLine.assertDomainExists();

var sourceFile = CLI.resolve(commandLine.options.source);
if (!sourceFile) {
if (!commandLine.options.source) {
console.log('You must specify the source SDF.');
return process.exit(1);
}

console.log('Processing: %1', sourceFile);
var sourceFile = CLI.resolve(commandLine.options.source);
console.log('Processing: %s', sourceFile);

var format = sourceFile.match(/\.(xml|json)$/i);
if (!format) {
Expand Down

0 comments on commit 14092b0

Please sign in to comment.