mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Fix reporting of fatal scan error in -0 or -1 UIs
This commit is contained in:
parent
0d314ca0ca
commit
3acab71fce
1 changed files with 2 additions and 0 deletions
|
|
@ -1059,6 +1059,8 @@ fn drawBox() void {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn draw() void {
|
pub fn draw() void {
|
||||||
|
if (active_context.fatal_error != null and main.config.scan_ui != .full)
|
||||||
|
ui.die("Error reading {s}: {s}\n", .{ active_context.last_error.?, ui.errorString(active_context.fatal_error.?) });
|
||||||
switch (main.config.scan_ui) {
|
switch (main.config.scan_ui) {
|
||||||
.none => {},
|
.none => {},
|
||||||
.line => {
|
.line => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue