mirror of
https://github.com/coursera-dl/coursera-dl.git
synced 2026-07-17 16:35:35 +00:00
better error msg for incorrect .netrc permissions (#674)
This commit is contained in:
parent
d17027da41
commit
b0d1cc0cff
1 changed files with 2 additions and 1 deletions
|
|
@ -134,7 +134,8 @@ def authenticate_through_netrc(path=None):
|
|||
|
||||
error_messages = '\n'.join(str(e) for e in errors)
|
||||
raise CredentialsError(
|
||||
'Did not find valid netrc file:\n' + error_messages)
|
||||
'Did not find valid netrc file:\n' + error_messages +
|
||||
'\nPlease run this command: chmod og-rw ~/.netrc')
|
||||
|
||||
|
||||
def get_credentials(username=None, password=None, netrc=None, use_keyring=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue