Skip to content

Instantly share code, notes, and snippets.

Created Aug 26, 2015
What would you like to do?
Meteor error explanation
// see
var error = new Meteor.Error('error-name', 'reason');
alert(error) //=> Error: reason [error-name]
alert(error.reason) //=> reason
alert(error.error) //=> error-name
// Explanation.. alert(error) is the same as going alert(error.toString()), which results in "Error: error.reason [error.error]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment