Skip to content

Commit

Permalink
Merge pull request #796 from null-a/inc-name-in-warning
Browse files Browse the repository at this point in the history
Include parameter name in warning.
  • Loading branch information
stuhlmueller committed Mar 17, 2017
2 parents 3d0e4ac + 33f5dbd commit 9c9ba0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/params/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ module.exports = function(env) {
});

if (!env.coroutine._guide) {
util.warn('Warning: Parameter created outside of the guide.', true);
util.warn('Warning: Parameter ' +
(_.has(options, 'name') ? '"' + options.name + '" ' : '') +
'created outside of the guide.', true);
}

var dims = options.dims;
Expand Down

0 comments on commit 9c9ba0b

Please sign in to comment.