diff options
author | 2022-11-15 17:52:04 -0800 | |
---|---|---|
committer | 2022-11-15 17:52:04 -0800 | |
commit | 934360646fd063a84c6527eea059dc40ae0050bb (patch) | |
tree | 41d17932e07fd3230ab924b102079d84ee0403e3 /misctools | |
parent | 98df9d7703708cc7351563b9500d6a337003c3eb (diff) | |
download | bun-u/vjpr/zig-0.10.tar.gz bun-u/vjpr/zig-0.10.tar.zst bun-u/vjpr/zig-0.10.zip |
Diffstat (limited to 'misctools')
-rw-r--r-- | misctools/fetch.zig | 4 | ||||
-rw-r--r-- | misctools/http_bench.zig | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/misctools/fetch.zig b/misctools/fetch.zig index 2828f0a99..0b990572f 100644 --- a/misctools/fetch.zig +++ b/misctools/fetch.zig @@ -114,12 +114,12 @@ pub const Arguments = struct { var absolute_path_ = file_path_buf[0..absolute_path_len :0]; var body_file = std.fs.openFileAbsoluteZ(absolute_path_, .{ .mode = .read_only }) catch |err| { - Output.printErrorln("<r><red>{any}<r> opening file {any}", .{ @errorName(err), absolute_path }); + Output.printErrorln("<r><red>{s}<r> opening file {s}", .{ @errorName(err), absolute_path }); Global.exit(1); }; var file_contents = body_file.readToEndAlloc(allocator, try body_file.getEndPos()) catch |err| { - Output.printErrorln("<r><red>{any}<r> reading file {any}", .{ @errorName(err), absolute_path }); + Output.printErrorln("<r><red>{s}<r> reading file {s}", .{ @errorName(err), absolute_path }); Global.exit(1); }; body_string = file_contents; diff --git a/misctools/http_bench.zig b/misctools/http_bench.zig index 5064a7da7..11f0f23fa 100644 --- a/misctools/http_bench.zig +++ b/misctools/http_bench.zig @@ -120,12 +120,12 @@ pub const Arguments = struct { var absolute_path_ = file_path_buf[0..absolute_path_len :0]; var body_file = std.fs.openFileAbsoluteZ(absolute_path_, .{ .mode = .read_only }) catch |err| { - Output.printErrorln("<r><red>{any}<r> opening file {any}", .{ @errorName(err), absolute_path }); + Output.printErrorln("<r><red>{s}<r> opening file {s}", .{ @errorName(err), absolute_path }); Global.exit(1); }; var file_contents = body_file.readToEndAlloc(allocator, try body_file.getEndPos()) catch |err| { - Output.printErrorln("<r><red>{any}<r> reading file {any}", .{ @errorName(err), absolute_path }); + Output.printErrorln("<r><red>{s}<r> reading file {s}", .{ @errorName(err), absolute_path }); Global.exit(1); }; body_string = file_contents; |