still in progress
This commit is contained in:
@@ -6,8 +6,9 @@ use strum_macros::AsRefStr;
|
||||
|
||||
use thiserror::Error as ThisError;
|
||||
use aws_sdk_sts::{
|
||||
types::SdkError as AwsSdkError,
|
||||
error::GetSessionTokenError,
|
||||
error::SdkError as AwsSdkError,
|
||||
operation::get_session_token::GetSessionTokenError,
|
||||
error::ProvideErrorMetadata,
|
||||
};
|
||||
use rfd::{
|
||||
AsyncMessageDialog,
|
||||
@@ -270,6 +271,16 @@ pub enum SaveCredentialsError {
|
||||
Crypto(#[from] CryptoError),
|
||||
#[error(transparent)]
|
||||
Session(#[from] GetCredentialsError),
|
||||
#[error("App is locked")]
|
||||
Locked,
|
||||
#[error("Credential is temporary and cannot be saved")]
|
||||
NotPersistent,
|
||||
#[error("A credential with that name already exists")]
|
||||
Duplicate,
|
||||
// rekeying is fundamentally a save operation,
|
||||
// but involves loading in order to re-save
|
||||
#[error(transparent)]
|
||||
LoadCredentials(#[from] LoadCredentialsError),
|
||||
}
|
||||
|
||||
#[derive(Debug, ThisError, AsRefStr)]
|
||||
|
Reference in New Issue
Block a user