better end dot error

This commit is contained in:
WanderingPenwing 2024-12-11 15:04:09 +01:00
parent 19ec0dcf36
commit d4901bfcfa
2 changed files with 4 additions and 1 deletions

View file

@ -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 {

View file

@ -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]),