Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions R/drive_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ drive_download <- function(file,
"*" = "{.path {path}}"
))
} else {
# drop this in to allow a post mortem inspection of failure
# not how this would be wired up "in production"
# puts the response within reach of the unexported functions
# gargle:::gargle_last_response() and gargle:::gargle_last_content()
gargle::response_process(response)
drive_abort("Download failed.")
}
invisible(put_column(file, nm = "local_path", val = path, .after = "name"))
Expand Down