mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-04 23:44:13 +00:00
handle feature
error Response
This commit is contained in:
parent
2e1b71fdd9
commit
8266c07db7
@ -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…
x
Reference in New Issue
Block a user