mirror of
https://codeberg.org/icewind/vmt-parser.git
synced 2026-06-03 12:04:06 +02:00
released vdf-reader
This commit is contained in:
parent
79c4221a65
commit
f39661ca95
21 changed files with 395 additions and 31 deletions
|
|
@ -16,7 +16,7 @@ fn main() -> Result<()> {
|
|||
.filter(|e| e.file_name().to_str().unwrap_or_default().ends_with(".vmt"))
|
||||
{
|
||||
if let Err(e) = try_parse(entry.path()) {
|
||||
err.push(e);
|
||||
err.push((entry.path().to_path_buf(), e));
|
||||
let e = try_parse(entry.path()).unwrap_err();
|
||||
println!("{:?}", e);
|
||||
} else {
|
||||
|
|
@ -27,8 +27,8 @@ fn main() -> Result<()> {
|
|||
|
||||
println!("successfully parsed {success} files");
|
||||
println!("found errors in {} files", err.len());
|
||||
for e in err {
|
||||
println!("{:?}", e);
|
||||
for (path, e) in err {
|
||||
println!("{}: {e:?}", path.display());
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue