mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-19 05:26:31 +01:00
add support for custom theming in mers errors
this also includes support for the NoTheme, a theme which doesn't add any color to mers' output. If you compile mers with --no-default-features, the `colored` dependency will disappear and mers_lib will fall back to NoTheme.
This commit is contained in:
@@ -44,7 +44,7 @@ impl Config {
|
||||
return Err(format!("Function returns a value of type {out}, which isn't included in the type of the reference, {arg}.").into());
|
||||
}
|
||||
},
|
||||
Err(e) => return Err(CheckError::new().msg(format!("Invalid argument type {arg} for function")).err(e)),
|
||||
Err(e) => return Err(CheckError::new().msg_str(format!("Invalid argument type {arg} for function")).err(e)),
|
||||
}
|
||||
} else {
|
||||
return Err(format!("Arguments must be (reference, function)").into());
|
||||
|
||||
Reference in New Issue
Block a user