File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ impl StateParsedUrl {
123
123
} ) ,
124
124
None => Err ( FetchApiRootUrlError :: ApiRootLinkHeaderNotFound {
125
125
header_map : response. header_map ,
126
+ status_code : response. status_code ,
126
127
} ) ,
127
128
}
128
129
}
@@ -180,16 +181,23 @@ pub(super) struct StateFetchedApiDetails {
180
181
#[ derive( Debug , thiserror:: Error , uniffi:: Error ) ]
181
182
pub enum FetchApiRootUrlError {
182
183
#[ error(
183
- "Request execution failed!\n Status Code: '{:?}'. \n Response: '{}'" ,
184
+ "Request execution failed!\n Status Code: '{:?}'\n Response: '{}'" ,
184
185
status_code,
185
186
reason
186
187
) ]
187
188
RequestExecutionFailed {
188
189
status_code : Option < u16 > ,
189
190
reason : String ,
190
191
} ,
191
- #[ error( "Api root link header not found in header_map: {:?}" , header_map) ]
192
- ApiRootLinkHeaderNotFound { header_map : Arc < WpNetworkHeaderMap > } ,
192
+ #[ error(
193
+ "Api root link header not found!\n Status Code: '{:#?}'\n Header Map: '{:#?}'" ,
194
+ status_code,
195
+ header_map
196
+ ) ]
197
+ ApiRootLinkHeaderNotFound {
198
+ header_map : Arc < WpNetworkHeaderMap > ,
199
+ status_code : u16 ,
200
+ } ,
193
201
}
194
202
195
203
impl From < RequestExecutionError > for FetchApiRootUrlError {
You can’t perform that action at this time.
0 commit comments