From 93923251154809895bb7814937f4241312065090 Mon Sep 17 00:00:00 2001 From: Ian Wijma Date: Tue, 21 Nov 2023 00:08:03 +1100 Subject: [PATCH] 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. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8a20028..05dc5b1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -120,7 +120,7 @@ fn run_command(retry: &mut Retry) { println!("Restarting..."); restart(retry); } 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); } } }