From 264c05c839ffd72ed0f7f6544bbe704d51ea0909 Mon Sep 17 00:00:00 2001 From: Chun-Hung Tseng Date: Wed, 6 Sep 2023 03:32:30 +0200 Subject: [PATCH] Improve 2FA and replacing existing draft error messages --- common/error.go | 2 +- error.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/error.go b/common/error.go index dad2974..1a1ea8d 100644 --- a/common/error.go +++ b/common/error.go @@ -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") ) diff --git a/error.go b/error.go index 003c8a4..43bae74 100644 --- a/error.go +++ b/error.go @@ -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")