From 1fbe89dc2e204defc18add72efd2bba4dbe728fc Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Thu, 26 Nov 2020 19:14:22 +0100 Subject: langref: Update langref to use {s} --- lib/std/testing.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/std') diff --git a/lib/std/testing.zig b/lib/std/testing.zig index d1f025c929..80cc7f930d 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -29,8 +29,7 @@ pub var zig_exe_path: []const u8 = undefined; /// and then aborts when actual_error_union is not expected_error. pub fn expectError(expected_error: anyerror, actual_error_union: anytype) void { if (actual_error_union) |actual_payload| { - // std.debug.panic("expected error.{s}, found {}", .{ @errorName(expected_error), actual_payload }); - std.debug.panic("expected error.{s}, found", .{@errorName(expected_error)}); + std.debug.panic("expected error.{s}, found {}", .{ @errorName(expected_error), actual_payload }); } else |actual_error| { if (expected_error != actual_error) { std.debug.panic("expected error.{s}, found error.{s}", .{ -- cgit v1.2.3