From eb858c768ba007a31a62a8bf64ec7a84e67a41b8 Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Mon, 14 Nov 2022 21:27:46 +0000 Subject: [PATCH] Bug 1800247 - Replace incorrect uses of two-argument Cu.reportError with console.error or equivalent (AboutProtectionsParent.sys.mjs). r=pbz Differential Revision: https://phabricator.services.mozilla.com/D161922 --- browser/actors/AboutProtectionsParent.sys.mjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/browser/actors/AboutProtectionsParent.sys.mjs b/browser/actors/AboutProtectionsParent.sys.mjs index d337bae11c34..7cfdf12183cb 100644 --- a/browser/actors/AboutProtectionsParent.sys.mjs +++ b/browser/actors/AboutProtectionsParent.sys.mjs @@ -176,7 +176,7 @@ export class AboutProtectionsParent extends JSWindowActorParent { await lazy.fxAccounts.device.refreshDeviceList(); } } catch (e) { - Cu.reportError("There was an error fetching login data: ", e.message); + console.error("There was an error fetching login data: ", e.message); } const userFacingLogins = @@ -250,7 +250,7 @@ export class AboutProtectionsParent extends JSWindowActorParent { }; } } catch (e) { - Cu.reportError(e.message); + console.error(e.message); monitorData.errorMessage = e.message; // If the user's OAuth token is invalid, we clear the cached token and refetch @@ -263,7 +263,7 @@ export class AboutProtectionsParent extends JSWindowActorParent { try { monitorData = await this.fetchUserBreachStats(token); } catch (_) { - Cu.reportError(e.message); + console.error(e.message); } } else if (e.message === USER_UNSUBSCRIBED_TO_MONITOR) { // Send back user's email so the protections report can direct them to the proper @@ -288,7 +288,7 @@ export class AboutProtectionsParent extends JSWindowActorParent { try { token = await lazy.fxAccounts.getOAuthToken({ scope: SCOPE_MONITOR }); } catch (e) { - Cu.reportError( + console.error( "There was an error fetching the user's token: ", e.message ); @@ -328,7 +328,7 @@ export class AboutProtectionsParent extends JSWindowActorParent { try { vpnToken = await lazy.fxAccounts.getOAuthToken({ scope: SCOPE_VPN }); } catch (e) { - Cu.reportError( + console.error( "There was an error fetching the user's token: ", e.message );