Display mld parsing error

This commit is contained in:
p11 2025-04-21 23:43:18 +02:00
parent bf92f9277d
commit dea267b751

View File

@ -469,7 +469,10 @@ fn load_multilinear(mlc_path: Option<&Path>, mld_path: &Path) -> Option<NamedMul
}
}
parser.parse(File::open(mld_path).ok()?, &[]).ok()?;
if let Err(e) = parser.parse(File::open(mld_path).ok()?, &[]) {
eprintln!("Error parsing multilinear definition: {e}");
return None;
}
Some(parser.into_info())
}