mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
fix: removed filler error
This commit is contained in:
parent
f9784e961d
commit
95ece68ae6
2 changed files with 1 additions and 9 deletions
|
@ -63,11 +63,6 @@ pub enum Error {
|
||||||
|
|
||||||
/// errors caused by wrong interlocking, safe to retry
|
/// errors caused by wrong interlocking, safe to retry
|
||||||
Deadlocked,
|
Deadlocked,
|
||||||
|
|
||||||
/// if you see these errors someone is being lazy (:
|
|
||||||
Filler { // TODO filler error, remove later
|
|
||||||
message: String,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl StdError for Error {}
|
impl StdError for Error {}
|
||||||
|
|
|
@ -25,10 +25,7 @@ impl From<CodempError> for PyErr {
|
||||||
CodempError::InvalidState { msg } => {
|
CodempError::InvalidState { msg } => {
|
||||||
PyRuntimeError::new_err(format!("Invalid state: {}", msg))
|
PyRuntimeError::new_err(format!("Invalid state: {}", msg))
|
||||||
}
|
}
|
||||||
CodempError::Deadlocked => PyRuntimeError::new_err(format!("Deadlock, retry.")),
|
CodempError::Deadlocked => PyRuntimeError::new_err(format!("Deadlock, retry."))
|
||||||
CodempError::Filler { message } => {
|
|
||||||
PyBaseException::new_err(format!("Generic error: {}", message))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue