Skip to content

Commit

Permalink
convert to log
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamkrishnar committed May 6, 2023
1 parent 33af50c commit beb8f2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/scripts/AriaDownloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function validateUrl(value) {
}

const pass = () => null;
const handleError = (error) => console.error(`Error: ${error}`);
const handleError = (error) => console.log(`Error: ${error}`);

async function removeFromHistory(id) {
await browser.downloads.removeFile(id).then(pass).catch(pass);
Expand Down Expand Up @@ -210,7 +210,7 @@ async function onGot(result, downloadItem, history) {
}
})
.catch((err) => {
console.error(err);
console.log(`Error: ${err}`);
// Failed: Show alert
const notificationOptions = {
type: 'basic',
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function downloadAgent() {
}

async function onError(error) {
console.error(`Error: ${error}`);
console.log(`Error: ${error}`);
}

// Triggered whenever a new download event fires
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function ConfigView() {
}
},
(error) => {
console.error(`Error: ${error}`);
console.log(`Error: ${error}`);
}
);
}, []);
Expand Down

0 comments on commit beb8f2f

Please sign in to comment.