Skip to content

Commit

Permalink
Merge pull request #1386 from tgriesser/feature/fix-migrate-make-crash
Browse files Browse the repository at this point in the history
Prevent crash on `migrate:make`
  • Loading branch information
rhys-vdw committed May 6, 2016
2 parents 40c80b3 + 6bcceb4 commit f42be02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default class Migrator {
_generateStubTemplate() {
var stubPath = this.config.stub || path.join(__dirname, 'stub', this.config.extension + '.stub');
return Promise.promisify(fs.readFile, {context: fs})(stubPath).then(function(stub) {
return template(stub.toString(), null, {variable: 'd'});
return template(stub.toString(), {variable: 'd'});
});
}

Expand Down

0 comments on commit f42be02

Please sign in to comment.