Improve 2FA and replacing existing draft error messages

This commit is contained in:
Chun-Hung Tseng
2023-09-06 03:32:30 +02:00
parent cd239be14b
commit 264c05c839
2 changed files with 2 additions and 2 deletions

View File

@@ -7,6 +7,6 @@ var (
ErrFailedToUnlockUserKeys = errors.New("failed to unlock user keys")
ErrUsernameAndPasswordRequired = errors.New("username and password are required")
Err2FACodeRequired = errors.New("this account requires a 2FA code")
Err2FACodeRequired = errors.New("this account requires a 2FA code. Can be provided with --protondrive-2fa=000000")
ErrMailboxPasswordRequired = errors.New("this account requires a mailbox password")
)

View File

@@ -14,7 +14,7 @@ var (
ErrLinkMustNotBeNil = errors.New("missing input proton link")
ErrLinkMustBeActive = errors.New("can not operate on link state other than active")
ErrDownloadedBlockHashVerificationFailed = errors.New("the hash of the downloaded block doesn't match the original hash")
ErrDraftExists = errors.New("a draft exist - usually this means a file is being uploaded at another client, or, there was a failed upload attempt")
ErrDraftExists = errors.New("a draft exist - usually this means a file is being uploaded at another client, or, there was a failed upload attempt. Can use --protondrive-replace-existing-draft=true to temporarily override the existing draft")
ErrCantFindActiveRevision = errors.New("can't find an active revision")
ErrCantFindDraftRevision = errors.New("can't find a draft revision")
ErrWrongUsageOfGetLinkKR = errors.New("internal error for GetLinkKR - nil passed in for link")