These are chat archives for reactioncommerce/reaction
Hey guys, is it possible to import the Alerts component on the server?
I need to display message of success or error according to the method exeução.
@danielpinna In the method on the server, you can
throw new Meteor.Error("code", "message"), then on the client in the callback to the method call you can show an alert of error.
You cannot import the alerts component on the server, ( not sure what you mean by that )
Oh cool, thank you.
I wanted to try to send the server error straight to the screen, I was thinking the wrong way.
The right is that way you, thank you.