Navigation Menu

Skip to content

Commit

Permalink
Output validation error correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 9, 2012
1 parent fee4523 commit 4befb5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/gcs-post-sdf
Expand Up @@ -52,8 +52,7 @@ try {
processor.validate(batches);
} catch (error) {
console.log('Validation failed.');
var errors = error.errors.map(function(error) { return error.message; });
console.log(errors.join('\n'));
console.log(error.errors.join('\n'));
return process.exit(1);
}

Expand Down

0 comments on commit 4befb5a

Please sign in to comment.