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:
parent
a5dd011506
commit
9392325115
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue