response: add some notes about the errors
Some checks failed
Build and test / build (push) Successful in 1m7s
Build and test / check (push) Failing after 1m8s
Build and test / docs (push) Successful in 1m11s
Build and test / test (push) Successful in 2m20s

This commit is contained in:
2025-12-08 01:46:14 +09:00
parent 4bb5702eba
commit 9f859e1df1

View File

@@ -5,10 +5,13 @@ pub type Response = Result<(), MpdError>;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub enum ErrorCode {
// NOTE: seemingly unused
NotList = 1,
Arg = 2,
// NOTE: only used for 'password' command
Password = 3,
Permission = 4,
// NOTE: Catchall error
Unknown = 5,
NoExist = 50,