How to track Meteor.js errors automatically
Posted May 20, 2016 | 2 min. (216 words)This is a test
test 123// Sign up for a free trial
// Create an app in Raygun, get an API key
// Installation
Install the Node package
npm install raygun// Set up Server/client error handler method
// In /lib
var throwError = function(error, reason, details) {
error = new Meteor.Error(error, reason, details);
if (Meteor.isClient) {
return error;
} else if (Meteor.isServer) {
throw error;
}
};// Notify the user with toastr
Test 123
This is a testHello
This is an alert!Ready to get Raygun?
As mentioned above there’s a free 30-day, no-credit-card trial available here, so grab yours and check out how your web app is really performing for your users. If you have any questions about this post leave them in the comments below, otherwise happy error blasting!
Wasting time hunting down errors in your applications?
<p>
<strong>Try <a href="https://raygun.com/?utm_source=blog-post-footer">Raygun</a> FREE for 14 days.</strong> Raygun is amazingly easy to integrate. Just copy and paste the code into your application and Raygun will start monitoring for errors. Just how many errors do your apps have that you don’t even know about? <strong><a href="https://raygun.com">Find out now!</a></strong>
</p>
</div>
<div class="medium-4 large-4 columns">
<a href="https://raygun.com/?utm_source=blog-post-footer"><br /> <img src="/blog/wp-content/uploads/2016/05/blog-gun.png" border="0" /><br /> </a>
</div>