mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +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 {
|
Feature::Default { request } => match request {
|
||||||
Request::Gemini { uri } => {
|
Request::Gemini { uri } => {
|
||||||
|
|
@ -120,8 +122,9 @@ impl Driver {
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Request::Titan { .. } => todo!(),
|
_ => callback(Response::Failure(Failure::Error {
|
||||||
Request::Undefined => todo!(),
|
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