Accounts.validateLoginAttempt - Catch on Client?


#1

For Meteor.Errors thrown inside this call, is there any way to catch the error on the client side?
The error is displayed in the browser’s console, but I’d like to be able to catch and handle that, too.

It doesn’t appear that the error propagates up to any particular method call (Accounts.loginWith***).
Not sure if there’s a general error handling function on client side that can be used to catch this error.


#2

Looks like I can ‘catch’ that error with
Accounts.onPageLoadLogin(attempt => {});

attempt.error will contain the error object.