2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/htdocs/includes/raven-js/example/file2.js
Raphaël Doursenaud a6ef289470 New Added client-side Sentry logging
Using Raven.js allows logging client-side javascript errors to the
configured Sentry server.
2015-09-04 19:10:46 +02:00

13 lines
193 B
JavaScript

function multiply(a, b) {
"use strict";
return a * b;
}
function divide(a, b) {
"use strict";
try {
return multiply(add(a, b), a, b) / c;
} catch (e) {
Raven.captureException(e);
}
}