mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
handle feature error Response
This commit is contained in:
parent
2e1b71fdd9
commit
8266c07db7
1 changed files with 6 additions and 3 deletions
|
|
@ -91,7 +91,9 @@ impl Driver {
|
|||
})
|
||||
})
|
||||
}
|
||||
_ => todo!(),
|
||||
_ => callback(Response::Failure(Failure::Error {
|
||||
message: "Download feature yet not supported for this request".to_string(),
|
||||
})), // @TODO or maybe panic as unexpected
|
||||
},
|
||||
Feature::Default { request } => match request {
|
||||
Request::Gemini { uri } => {
|
||||
|
|
@ -120,8 +122,9 @@ impl Driver {
|
|||
)
|
||||
})
|
||||
}
|
||||
Request::Titan { .. } => todo!(),
|
||||
Request::Undefined => todo!(),
|
||||
_ => callback(Response::Failure(Failure::Error {
|
||||
message: "Source view feature yet not supported for this request".to_string(),
|
||||
})), // @TODO or maybe panic as unexpected
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue