diff --git a/src/model/onkostar_editor.rs b/src/model/onkostar_editor.rs index f76d5de..ed13005 100644 --- a/src/model/onkostar_editor.rs +++ b/src/model/onkostar_editor.rs @@ -404,6 +404,16 @@ impl FromStr for OnkostarEditor { type Err = String; fn from_str(s: &str) -> Result { + if !s + .matches("") + .collect::() + .is_empty() + { + return Err( + "Datei mit Inhalt 'AnalyseBereichEditor' kann nicht verwendet werden".into(), + ); + } + match from_str::(s) { Ok(profile) => Ok(profile), Err(err) => Err(err.to_string()),