From f5ecab962066771effa3f04c2e0d6229170b82aa Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Sat, 3 Feb 2024 23:17:50 +0900 Subject: [PATCH] Add FAQ link to error messages --- gdown/download.py | 3 ++- gdown/download_folder.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gdown/download.py b/gdown/download.py index 0cf81de2..560f8ea3 100644 --- a/gdown/download.py +++ b/gdown/download.py @@ -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 diff --git a/gdown/download_folder.py b/gdown/download_folder.py index 81d34bd7..31cbd388 100644 --- a/gdown/download_folder.py +++ b/gdown/download_folder.py @@ -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