Deconstruct PNG imag
This commit is contained in:
@@ -15,6 +15,10 @@ pub struct Error {
|
||||
impl Error {
|
||||
const DEFAULT_EXITCODE:i32 = -1;
|
||||
|
||||
pub fn from_str(str: &str) -> Error {
|
||||
Self::from_text(str.to_owned())
|
||||
}
|
||||
|
||||
pub fn from_text(text: String) -> Error {
|
||||
Error{exit_code: Self::DEFAULT_EXITCODE, action: String::new(), text}
|
||||
}
|
||||
|
Reference in New Issue
Block a user