Skip to content

Commit

Permalink
fail-fast and additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
behoyh committed Apr 11, 2022
1 parent 14d0a1c commit 797aa51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ class ghostGoogleDrive extends StorageBase {
drive.files.get({ auth: client, fileId: fileId, alt: "media" }, { responseType: "stream" },
function (err, resp) {
if (err) {
console.error(err);
console.error(err, resp);
next();
}
resp.data.on("end", () => {
console.log("Done");
Expand Down

0 comments on commit 797aa51

Please sign in to comment.