Skip to content

Commit

Permalink
make submitted_by mandatory (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
trappitsch authored May 31, 2024
1 parent ea1355d commit f1a8de8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,9 @@ fn create_json_output(app_entries: &TemplateApp) -> Result<String, String> {

// error checking
if app_entries.scheme_transitions[0].level.is_empty() {
return Err("No transitions entered: Please add at least one step.".to_owned());
return Err("No transitions entered: Please add at least one step.".into());
} else if app_entries.submitted_by.is_empty() {
return Err("Please enter your name.".into());
}

// create the json file
Expand Down

0 comments on commit f1a8de8

Please sign in to comment.