How to use the rollbar.handleErrorWithPayloadData function in rollbar

To help you get started, we’ve selected a few rollbar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JustFixNYC / tenants / app / controllers / users / users.profile.server.controller.js View on Github external
.catch(function (error) {
						rollbar.handleErrorWithPayloadData("Email notification error", { error: error }, req);
						// console.log('email fail', error);
					});
			}
github JustFixNYC / tenants / config / express.js View on Github external
app.use(function(err, req, res, next) {
		// If the error object doesn't exists
		if (!err) return next();

		// Log it
		console.error(err.stack);

		// Rollbar time!
		rollbar.handleErrorWithPayloadData(err, {}, req);


		// Error page


		// using the message part for the moment
		// res.status(500).render('500', {
		// 	error: err.stack
		// });

		res.status(500).send({
			errors: [{
				message: err.stack
			}]
		});
github JustFixNYC / tenants / app / controllers / tenants / tenants.authentication.server.controller.js View on Github external
.catch(function (error) {
        rollbar.handleErrorWithPayloadData("Email notification error", { error: error }, req);
        // console.log('email fail', error);
      });
  }
github JustFixNYC / tenants / app / controllers / scheduling.server.controller.js View on Github external
.catch(function (err) {
        rollbar.handleErrorWithPayloadData("Scheduling Error", { phone: req.body.appt.phone, error: err }, req);
        res.status(500).send({ message: errorHandler.getErrorMessage(err) });
      });
  } else {