Meteor-Community-Packages / meteor-roles

Authorization package for Meteor, compatible with built-in accounts packages
http://meteor-community-packages.github.io/meteor-roles/
MIT License
921 stars 167 forks source link

createRole throws syntax error #224

Closed msolters closed 7 years ago

msolters commented 7 years ago

Whenever I run Roles.createRole I get the following error output:

W20170107-03:48:11.734(-5)? (STDERR) TypeError: Cannot read property 'match' of undefined
W20170107-03:48:11.734(-5)? (STDERR)     at Object._.extend.createRole (packages/alanning_roles.js:156:20)

I think you need to check for the existence of both e && e.err before executing a .match test on e.err.

mitar commented 7 years ago

I think this was fixed in 79250d651613fb9868a0c5b1b343f63294e32c61.

msolters commented 7 years ago

Is this change published?

mitar commented 7 years ago

I do not think so.