Skip to content

Commit 2301223

Browse files
committed
Add missing exit status on I/O errors
1 parent ee51330 commit 2301223

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Pending
44

55
- Bump Java version for GitHub Actions.
6+
- [CLI] Add missing exit status on I/O errors.
67
- [Internal] Loosen ahash dependency version.
78
- [Internal] Bump lightningcss.
89

minhtml/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ macro_rules! io_expect {
9898
Ok(r) => r,
9999
Err(e) => {
100100
eprintln!("[{}] {}: {}", $name, $msg, e);
101-
return;
101+
exit(1);
102102
}
103103
}
104104
};

0 commit comments

Comments
 (0)