Removed unused errors
This commit is contained in:
parent
e0b3ea4b98
commit
72c40d5fcd
1 changed files with 0 additions and 14 deletions
|
@ -37,24 +37,11 @@ error_chain! {
|
||||||
|
|
||||||
errors {
|
errors {
|
||||||
DaemonError {}
|
DaemonError {}
|
||||||
AuthenticationRequired {}
|
|
||||||
AdminPrivilegeRequired {}
|
|
||||||
MissingConfig {}
|
|
||||||
MissingPreferences {}
|
|
||||||
MissingUsername {}
|
|
||||||
MissingPassword {}
|
|
||||||
MissingPlaylist {}
|
|
||||||
IncorrectCredentials {}
|
IncorrectCredentials {}
|
||||||
CannotServeDirectory {}
|
|
||||||
UnsupportedFileType {}
|
|
||||||
FileNotFound {}
|
|
||||||
MissingIndexVersion {}
|
|
||||||
MissingPlaylistName {}
|
|
||||||
EncodingError {}
|
EncodingError {}
|
||||||
MissingLastFMCredentials {}
|
MissingLastFMCredentials {}
|
||||||
LastFMAuthError {}
|
LastFMAuthError {}
|
||||||
LastFMDeserializationError {}
|
LastFMDeserializationError {}
|
||||||
MissingDesiredResponse {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +50,6 @@ impl<'r> rocket::response::Responder<'r> for Error {
|
||||||
let mut build = rocket::response::Response::build();
|
let mut build = rocket::response::Response::build();
|
||||||
build
|
build
|
||||||
.status(match self.0 {
|
.status(match self.0 {
|
||||||
ErrorKind::FileNotFound => rocket::http::Status::NotFound,
|
|
||||||
ErrorKind::IncorrectCredentials => rocket::http::Status::Unauthorized,
|
ErrorKind::IncorrectCredentials => rocket::http::Status::Unauthorized,
|
||||||
_ => rocket::http::Status::InternalServerError,
|
_ => rocket::http::Status::InternalServerError,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue