Skip to content

Commit

Permalink
Fix Cannot read property 'options' of undefined
Browse files Browse the repository at this point in the history
Task config can be undefined. Since unknown version, grunt.config
result `undefined` if no options are found.

Closes #94.
  • Loading branch information
LoicMahieu authored and drublic committed Jan 5, 2015
1 parent 713499b commit 7ae2b4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CHANGELOG

### HEAD
* Fix `Cannot read property 'options' of undefined`
* Prevent message when committing from stating `undefined`
* Capitalize task description

Expand Down
2 changes: 1 addition & 1 deletion tasks/grunt-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = function(grunt){
pushTags: true,
npm : true,
remote: 'origin'
}, grunt.config(this.name).options);
}, (grunt.config(this.name) || {}).options);

var config = setup(options.file, type);
var templateOptions = {
Expand Down

0 comments on commit 7ae2b4d

Please sign in to comment.