Skip to content

Commit

Permalink
chore: improve error logging
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <jakub.mucha@icloud.com>
  • Loading branch information
drptbl committed Sep 21, 2022
1 parent c6f86ee commit b635857
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ module.exports = {
};
} catch (e) {
throw new Error(
`[getMetamaskReleases] Unable to fetch metamask releases from: ${downloadUrl}`,
e,
`[getMetamaskReleases] Unable to fetch metamask releases from: ${downloadUrl} with following error:\n${e}`,
);
}
},
Expand All @@ -110,8 +109,7 @@ module.exports = {
await zip.unzip(file, destination);
} catch (e) {
throw new Error(
`[extract] Unable to extract file: ${file} at following destination: ${destination}`,
e,
`[download] Unable to download metamask release from: ${url} to: ${destination} with following error:\n${e}`,
);
}
},
Expand Down

0 comments on commit b635857

Please sign in to comment.