mirror of
https://github.com/henrybear327/Proton-API-Bridge.git
synced 2026-04-19 06:16:52 -04:00
Improve 2FA and replacing existing draft error messages
This commit is contained in:
@@ -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")
|
||||
)
|
||||
|
||||
2
error.go
2
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")
|
||||
|
||||
Reference in New Issue
Block a user