File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ mod tests {
144
144
. next( )
145
145
. unwrap( )
146
146
. text_contents( ) ,
147
- "The requested crate does not exist" ,
147
+ "The requested resource does not exist" ,
148
148
) ;
149
149
150
150
Ok ( ( ) )
@@ -190,7 +190,7 @@ mod tests {
190
190
. next( )
191
191
. unwrap( )
192
192
. text_contents( ) ,
193
- "The requested version does not exist" ,
193
+ "The requested resource does not exist" ,
194
194
) ;
195
195
196
196
Ok ( ( ) )
@@ -209,7 +209,7 @@ mod tests {
209
209
. next( )
210
210
. unwrap( )
211
211
. text_contents( ) ,
212
- "The requested version does not exist" ,
212
+ "The requested resource does not exist" ,
213
213
) ;
214
214
215
215
Ok ( ( ) )
@@ -232,7 +232,7 @@ mod tests {
232
232
. next( )
233
233
. unwrap( )
234
234
. text_contents( ) ,
235
- "The requested version does not exist" ,
235
+ "The requested resource does not exist" ,
236
236
) ;
237
237
238
238
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -183,9 +183,9 @@ impl Handler for CratesfyiHandler {
183
183
// because it gives the most specific errors, e.g. CrateNotFound or VersionNotFound
184
184
self . shared_resource_handler
185
185
. handle ( req)
186
+ . or_else ( |e| if_404 ( e, || self . router_handler . handle ( req) ) )
186
187
. or_else ( |e| if_404 ( e, || self . database_file_handler . handle ( req) ) )
187
188
. or_else ( |e| if_404 ( e, || self . static_handler . handle ( req) ) )
188
- . or_else ( |e| if_404 ( e, || self . router_handler . handle ( req) ) )
189
189
. or_else ( |e| {
190
190
let err = if let Some ( err) = e. error . downcast :: < error:: Nope > ( ) {
191
191
* err
You can’t perform that action at this time.
0 commit comments