feat(rename): rename signal_reduce_inpur_utils.rs to signal_reduce_utils.rs
This commit is contained in:
@@ -12,3 +12,12 @@ use gtk::{
|
||||
prelude::{Cast, CastNone, EditableExt, ListItemExt, ObjectExt, WidgetExt},
|
||||
ColumnView, Entry, Label, ListItem, SignalListItemFactory,
|
||||
};
|
||||
|
||||
pub fn get_error_message(error: Error) -> Option<&'static str> {
|
||||
match error.to_string().as_str() {
|
||||
"cannot parse float from empty string" => Some("Вы не ввели данные в поле/-я"),
|
||||
"invalid float literal" => Some("Вы ввели не корректные данные в поле/-я"),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user