diff --git a/src/settings.rs b/src/settings.rs index 62f1751..3b568a5 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -75,9 +75,10 @@ impl FromValue for String { impl FromValue for bool { fn from_value(&mut self, value: Value) { - // TODO -- Warn when incorrect type if value.is_bool() { *self = value.as_bool().unwrap(); + }else{ + error!("Setting expected a string, but received {:?}", value); } } }