partialy implement Glue Logic

This commit is contained in:
2019-05-05 20:28:35 +02:00
parent 5369304516
commit 28085f9b87
3 changed files with 109 additions and 27 deletions

View File

@ -40,6 +40,10 @@ pub enum ProtocolError {
impl From<io::Error> for ProtocolError {
fn from(err: io::Error) -> Self {
ProtocolError::InternalServerError(err)
if err.kind() == io::ErrorKind::NotFound {
ProtocolError::FileNotFound("File Not Found!".to_string())
} else {
ProtocolError::InternalServerError(err)
}
}
}