Mdg:validdation-error get error

I am trying to use mdg:validdation-error.
I can generate the ValidationError but the thrown error is not returning as something that I can process.

for exemple:

// method name,
		if ( === 0){
			throw new ValidationError([
				 name: 'name',
				 type: 'must have value',
  // reset of the method

addList-form.js, (err, rers) => {
  if (err) {
     console.log('has validating err')

but it isn’t printed to the console:

Does someone sees what am I doing wrong?

Errors thrown on the server can only make their way to the client using throw new Meteor.Error:

1 Like

Thanks! was helpful indeed!

1 Like