Skip to main content

task_rs/desktop/config/sync/from_str/
error.rs

1use super::Reason;
2
3#[derive(Debug, PartialEq, Eq)]
4pub struct Error {
5    pub text: String,
6    pub reason: Reason,
7}
8
9impl ToString for Error {
10    fn to_string(&self) -> String {
11        format!(
12            "{:?} is invalid. reason: {}",
13            self.text,
14            self.reason.to_string()
15        )
16    }
17}