Correct commit message for the given diff:

Add newline character to error message

In this commit, a newline character `\n` was added at the end of the error message in the `print!` function within main.rs. This change ensures the output from the program is properly formatted and readable, increasing the overall user experience when such exceptions are encountered.
This commit is contained in:
Ian Wijma 2023-11-21 00:08:03 +11:00
parent a5dd011506
commit 9392325115
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ fn run_command(retry: &mut Retry) {
println!("Restarting..."); println!("Restarting...");
restart(retry); restart(retry);
} else { } else {
print!("The process has crashed more then {} times in the past {}, stop restarting", retry.max_retries, retry.restart_name); print!("The process has crashed more then {} times in the past {}, stop restarting\n", retry.max_retries, retry.restart_name);
} }
} }
} }