better end dot error
This commit is contained in:
parent
19ec0dcf36
commit
d4901bfcfa
|
@ -20,7 +20,7 @@ fn main() {
|
|||
match fs::read_to_string(chemin_de_fichier) {
|
||||
Ok(contenu) => {
|
||||
let Ok(_) = pendragon.compile(contenu) else {
|
||||
eprintln!("Compilation interrompue");
|
||||
eprintln!("\n# Échec de la compilation");
|
||||
return
|
||||
};
|
||||
if debug_mode {
|
||||
|
|
|
@ -50,6 +50,9 @@ impl Pendragon {
|
|||
if parties.len() == 1 {
|
||||
return Err(ErreurPendragon::ManqueArgument)
|
||||
}
|
||||
if parties[1].contains("Définis") || parties[1].contains("Modifie") || parties[1].contains("Affiche") || parties[1].contains("Demande") {
|
||||
return Err(ErreurPendragon::ManquePoint)
|
||||
}
|
||||
match parties[0] {
|
||||
"Définis" => self.definis(parties[1]),
|
||||
"Modifie" => self.modifie(parties[1]),
|
||||
|
|
Loading…
Reference in a new issue