File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ impl Config {
86
86
url = self . storage. endpoint_url( ) ,
87
87
cause = inner
88
88
) ,
89
+ Err ( ObjectStorageError :: AuthenticationError ( inner) ) => panic ! (
90
+ "Failed to authenticate. Please ensure credentials are valid\n Caused by: {cause}" ,
91
+ cause = inner
92
+ ) ,
89
93
Err ( error) => { panic ! ( "{error}" ) }
90
94
}
91
95
}
Original file line number Diff line number Diff line change @@ -494,6 +494,14 @@ impl From<SdkError<HeadBucketError>> for ObjectStorageError {
494
494
} ,
495
495
..
496
496
} => ObjectStorageError :: NoSuchBucket ( S3_CONFIG . bucket_name ( ) . to_string ( ) ) ,
497
+ SdkError :: ServiceError {
498
+ err :
499
+ HeadBucketError {
500
+ kind : HeadBucketErrorKind :: Unhandled ( err) ,
501
+ ..
502
+ } ,
503
+ ..
504
+ } => ObjectStorageError :: AuthenticationError ( err) ,
497
505
SdkError :: DispatchFailure ( err) => ObjectStorageError :: ConnectionError ( Box :: new ( err) ) ,
498
506
SdkError :: TimeoutError ( err) => ObjectStorageError :: ConnectionError ( err) ,
499
507
err => ObjectStorageError :: UnhandledError ( Box :: new ( err) ) ,
Original file line number Diff line number Diff line change @@ -216,6 +216,8 @@ pub enum ObjectStorageError {
216
216
DataFusionError ( #[ from] datafusion:: error:: DataFusionError ) ,
217
217
#[ error( "Unhandled Error: {0}" ) ]
218
218
UnhandledError ( Box < dyn std:: error:: Error + Send + ' static > ) ,
219
+ #[ error( "Authentication Error: {0}" ) ]
220
+ AuthenticationError ( Box < dyn std:: error:: Error + Send + ' static > ) ,
219
221
}
220
222
221
223
impl From < ObjectStorageError > for crate :: error:: Error {
You can’t perform that action at this time.
0 commit comments