Skip to content

Commit

Permalink
enrich error message, following the suggestion given on issue #31
Browse files Browse the repository at this point in the history
  • Loading branch information
simonedegiacomi committed Nov 17, 2019
1 parent ea53587 commit 544b2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (u *Upload) Upload() (*UploadResult, error) {
// First request to get the upload url
err := u.requestUploadURL()
if err != nil {
return &UploadResult{Uploaded: false}, errors.New("can't get an upload url")
return &UploadResult{Uploaded: false}, errors.New("can't get an upload url. Try to wait about 24h before a new attempt or refer to this issue: https://github.com/simonedegiacomi/gphotosuploader/issues/31")
}

// Upload the real image file
Expand Down

0 comments on commit 544b2e9

Please sign in to comment.