| ... | ... | @@ -3,7 +3,6 @@ const mem = std.mem; |
| 3 | 3 | const fs = std.fs; |
| 4 | 4 | const process = std.process; |
| 5 | 5 | const Allocator = std.mem.Allocator; |
| 6 | | const warn = std.log.warn; |
| 7 | 6 | const Color = std.zig.Color; |
| 8 | 7 | |
| 9 | 8 | const usage_fmt = |
| ... | ... | @@ -214,7 +213,7 @@ fn fmtPath(fmt: *Fmt, file_path: []const u8, check_mode: bool, dir: fs.Dir, sub_ |
| 214 | 213 | fmtPathFile(fmt, file_path, check_mode, dir, sub_path) catch |err| switch (err) { |
| 215 | 214 | error.IsDir, error.AccessDenied => return fmtPathDir(fmt, file_path, check_mode, dir, sub_path), |
| 216 | 215 | else => { |
| 217 | | warn("unable to format '{s}': {s}", .{ file_path, @errorName(err) }); |
| 216 | std.log.err("unable to format '{s}': {s}", .{ file_path, @errorName(err) }); |
| 218 | 217 | fmt.any_error = true; |
| 219 | 218 | return; |
| 220 | 219 | }, |
| ... | ... | @@ -248,7 +247,7 @@ fn fmtPathDir( |
| 248 | 247 | try fmtPathDir(fmt, full_path, check_mode, dir, entry.name); |
| 249 | 248 | } else { |
| 250 | 249 | fmtPathFile(fmt, full_path, check_mode, dir, entry.name) catch |err| { |
| 251 | | warn("unable to format '{s}': {s}", .{ full_path, @errorName(err) }); |
| 250 | std.log.err("unable to format '{s}': {s}", .{ full_path, @errorName(err) }); |
| 252 | 251 | fmt.any_error = true; |
| 253 | 252 | return; |
| 254 | 253 | }; |