aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler/resinator/errors.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-05-27 11:20:42 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-05-27 20:56:49 -0700
commit0937992a14e9557da7d753f3c38070fe57583e33 (patch)
tree3b1d18184929654c35c4fc19a56f9645a4b89a49 /lib/compiler/resinator/errors.zig
parent03073d6c7bf5f7cd1daf8941fcf72665563b46d4 (diff)
downloadzig-0937992a14e9557da7d753f3c38070fe57583e33.tar.gz
zig-0937992a14e9557da7d753f3c38070fe57583e33.zip
resinator: update to new progress API
Diffstat (limited to 'lib/compiler/resinator/errors.zig')
-rw-r--r--lib/compiler/resinator/errors.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/resinator/errors.zig b/lib/compiler/resinator/errors.zig
index 909824c594..5cfa766ac1 100644
--- a/lib/compiler/resinator/errors.zig
+++ b/lib/compiler/resinator/errors.zig
@@ -60,8 +60,8 @@ pub const Diagnostics = struct {
}
pub fn renderToStdErr(self: *Diagnostics, cwd: std.fs.Dir, source: []const u8, tty_config: std.io.tty.Config, source_mappings: ?SourceMappings) void {
- std.debug.getStderrMutex().lock();
- defer std.debug.getStderrMutex().unlock();
+ std.debug.lockStdErr();
+ defer std.debug.unlockStdErr();
const stderr = std.io.getStdErr().writer();
for (self.errors.items) |err_details| {
renderErrorMessage(self.allocator, stderr, tty_config, cwd, err_details, source, self.strings.items, source_mappings) catch return;