summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-09-27 16:39:45 -0400
committerMica White <botahamec@outlook.com>2026-09-27 16:39:45 -0400
commit67083043f5da93c447468578c49ffec1a679f1cc (patch)
tree83424ebe7efefce539db245b6960dc520c7b66ce /src/main.rs
parent35f6fc17d0c98f424e01904b8856cf42c80bcfd3 (diff)
Fix diagnostics
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index dcfd81b..8a51b8e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -36,7 +36,7 @@ fn main() {
let source = match std::fs::read(&filename) {
Ok(source) => source,
Err(error) => {
- eprintln!("Error: {error}");
+ eprintln!("Error while reading {filename}: {error}");
std::process::exit(1);
}
};
@@ -64,7 +64,7 @@ fn main() {
.filter(|(_, (ctx, tokens))| {
let failed = diagnostics::run_token_diagnostics(ctx, tokens).is_none();
has_failed |= failed;
- failed
+ !failed
})
.collect::<HashMap<_, _>>();
@@ -74,7 +74,7 @@ fn main() {
.filter(|(_, (ctx, document))| {
let failed = diagnostics::run_ast_diagnostics(ctx, document).is_none();
has_failed |= failed;
- failed
+ !failed
})
.collect::<HashMap<_, _>>();