separate file for error message function

This commit is contained in:
Mylloon 2022-01-04 18:17:46 +01:00
parent 701941b121
commit 34b16cb5d4
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

8
src/erreur.rs Normal file
View file

@ -0,0 +1,8 @@
/// Jolie message d'erreur
pub fn message_erreur(message: &str) -> String {
format!(
"\n{sep}\n{msg}\n{sep}\n",
sep = "=".repeat(message.len()),
msg = message
)
}