fn match_error_to_message(error: &Box<dyn Error>) -> &'static str {
    if error.is::<ParseIntError>() {
        "Given percent value needs to be a number between 0 and 100."
    } else if error.is::<std::io::Error>() {
        "Could not access the backlight device.
Does ist exist?
Usually `/sys/class/backlight/intel_backlight/` or similar.
Also, do you have permission to edit it?
On most Linux distributions you need to be part of a special group (video?)."
    } else {
        "Oh oh, we've made a fucky wucky..."
    }
}
// For every error that is expected to occur in kira, this method maps a "friendly"
// explanation text to it.
For every error that is expected to occur in kira, this method maps a "friendly"
explanation text to it.
For every error that is expected to occur in kira this method maps a " friendly " explanation text to it .
fn match_error_to_message(error: &Box<dyn Error>) -> &'static str {
    if error.is::<ParseIntError>() {
        "Given percent value needs to be a number between 0 and 100."
    } else if error.is::<std::io::Error>() {
        "Could not access the backlight device.
Does ist exist?
Usually `/sys/class/backlight/intel_backlight/` or similar.
Also, do you have permission to edit it?
On most Linux distributions you need to be part of a special group (video?)."
    } else {
        "Oh oh, we've made a fucky wucky..."
    }
}
fn match_error_to_message ( error : & Box < dyn Error > ) -> & ' static str { if error . is :: < ParseIntError > ( ) { " " } else if error . is :: < std :: io :: Error > ( ) { " " } else { " " } }
For every error that is expected to occur in kira, this method maps a "friendly"
explanation text to it.
For every error that is expected to occur in kira this method maps a " friendly " explanation text to it .
error
&Box<dyn Error>
error
&Box<dyn Error>