Commit 84433098 authored by Beth Rennie's avatar Beth Rennie
Browse files

Bug 1833463 - Back out changeset a1abf2ad5aa6 r=chutten

The errors were not `DOMException`s, but `PingReadError`s, which do have a
`becauseNoSuchFile` attribute.

Differential Revision: https://phabricator.services.mozilla.com/D178342
parent 12d1402a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -771,7 +771,7 @@ var TelemetryStorageImpl = {
      await checkSize(pathCompressed);
      ping = await this.loadPingFile(pathCompressed, /* compressed*/ true);
    } catch (ex) {
      if (!DOMException.isInstance(ex) || ex.name !== "NotFoundError") {
      if (!ex.becauseNoSuchFile) {
        throw ex;
      }
      // If that fails, look for the uncompressed version.
@@ -2011,7 +2011,7 @@ var TelemetryStorageImpl = {
    try {
      ping = await this.loadPingFile(lazy.gAbortedSessionFilePath);
    } catch (ex) {
      if (DOMException.isInstance(ex) && ex.name === "NotFoundError") {
      if (ex.becauseNoSuchFile) {
        this._log.trace("loadAbortedSessionPing - no such file");
      } else {
        this._log.error("loadAbortedSessionPing - error loading ping", ex);