From 5a00e249632716b86edac088f69d19d82e307a28 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 8 Feb 2022 17:26:55 -0700 Subject: std.Progress: make the API infallible by handling `error.TimerUnsupported`. In this case, only explicit calls to refresh() will cause the progress line to be printed. --- src/Compilation.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index f07a7c9dd7..bd7581863b 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -2586,7 +2586,7 @@ pub fn performAllTheWork(self: *Compilation) error{ TimerUnsupported, OutOfMemor // If the terminal is dumb, we dont want to show the user all the // output. var progress: std.Progress = .{ .dont_print_on_dumb = true }; - var main_progress_node = try progress.start("", 0); + var main_progress_node = progress.start("", 0); defer main_progress_node.end(); if (self.color == .off) progress.terminal = null; -- cgit v1.2.3