Skip to content

Commit

Permalink
fix: print error even if no message field
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed Nov 18, 2024
1 parent 695a927 commit 1e76cf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion node-utils/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ new EasyDl(downloadUrl, outputFile, {
);
})
.on("error", function (err) {
console.log(err.message);
console.log(err);
exit(3);
})
.on("end", function () {
Expand Down
4 changes: 2 additions & 2 deletions node-utils/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var options = {
},
parallelUploads: 6,
onError(err) {
console.log(err.message);
console.log(err);
exit(2);
},
onProgress(bytesUploaded, bytesTotal) {
Expand All @@ -44,7 +44,7 @@ var options = {
clearInterval(progressHandle);
fs.writeFile("file_id.txt", upload.url.split("/").pop(), (err) => {
if (err) {
console.log(err.message);
console.log(err);
exit(3);
}
});
Expand Down

0 comments on commit 1e76cf5

Please sign in to comment.