Skip to content

Commit

Permalink
Add FAQ link to error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Feb 3, 2024
1 parent 3091224 commit 736c564
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gdown/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def get_url_from_gdrive_confirmation(contents):
raise FileURLRetrievalError(
"Cannot retrieve the public link of the file. "
"You may need to change the permission to "
"'Anyone with the link', or have had many accesses."
"'Anyone with the link', or have had many accesses. "
"Check FAQ in https://github.com/wkentaro/gdown?tab=readme-ov-file#faq.",
)
return url

Expand Down
3 changes: 2 additions & 1 deletion gdown/download_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ def _parse_google_drive_file(url, content):
raise RuntimeError(
"Cannot retrieve the folder information from the link. "
"You may need to change the permission to "
"'Anyone with the link'."
"'Anyone with the link', or have had many accesses. "
"Check FAQ in https://github.com/wkentaro/gdown?tab=readme-ov-file#faq.",
)

# decodes the array and evaluates it as a python array
Expand Down

0 comments on commit 736c564

Please sign in to comment.