aboutsummaryrefslogtreecommitdiffstats
path: root/drive/update.go
diff options
context:
space:
mode:
Diffstat (limited to 'drive/update.go')
-rw-r--r--drive/update.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/drive/update.go b/drive/update.go
index 7af403f..2ab684e 100644
--- a/drive/update.go
+++ b/drive/update.go
@@ -65,6 +65,9 @@ func (self *Drive) Update(args UpdateArgs) error {
f, err := self.service.Files.Update(args.Id, dstFile).Fields("id", "name", "size").Context(ctx).Media(reader, chunkSize).Do()
if err != nil {
+ if isTimeoutError(err) {
+ return fmt.Errorf("Failed to upload file: timeout, no data was transferred for %v", args.Timeout)
+ }
return fmt.Errorf("Failed to upload file: %s", err)
}