[FIX] No send data to bugsnag if it's an aborted request (#2133)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
1cadfb3d27
commit
c46dcfa9e6
|
@ -17,7 +17,7 @@ export const logServerVersion = (serverVersion) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export default (e) => {
|
export default (e) => {
|
||||||
if (e instanceof Error && !__DEV__) {
|
if (e instanceof Error && e.message !== 'Aborted' && !__DEV__) {
|
||||||
bugsnag.notify(e, (report) => {
|
bugsnag.notify(e, (report) => {
|
||||||
report.metadata = {
|
report.metadata = {
|
||||||
details: {
|
details: {
|
||||||
|
|
Loading…
Reference in New Issue