File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ use futures_util::StreamExt;
2121use std:: borrow:: Cow ;
2222use std:: collections:: hash_map:: Entry ;
2323use std:: collections:: HashMap ;
24- use std:: io:: { self , Write } ;
24+ use std:: io:: Write ;
2525use std:: mem;
2626use std:: net:: IpAddr ;
2727use std:: path:: PathBuf ;
@@ -405,7 +405,11 @@ async fn process_sql_request(
405405 . await
406406 . map_err ( |e| {
407407 log:: error!( "Error while trying to get SQL file: {:#}" , e) ;
408- if e. downcast_ref ( ) . map ( io:: Error :: kind) == Some ( io:: ErrorKind :: NotFound ) {
408+ if e. downcast_ref ( )
409+ == Some ( & ErrorWithStatus {
410+ status : StatusCode :: NOT_FOUND ,
411+ } )
412+ {
409413 ErrorNotFound ( "The requested file was not found." )
410414 } else {
411415 ErrorInternalServerError ( format ! (
You can’t perform that action at this time.
0 commit comments