| ... | @@ -654,7 +654,7 @@ pub fn formatIntValue( | ... | @@ -654,7 +654,7 @@ pub fn formatIntValue( |
| 654 | radix = 8; | 654 | radix = 8; |
| 655 | uppercase = false; | 655 | uppercase = false; |
| 656 | } else { | 656 | } else { |
| 657 | @compileError("Unknown format string: '" ++ fmt ++ "'"); | 657 | @compileError("Unsupported format string '" ++ fmt ++ "' for type '" ++ @typeName(@TypeOf(value)) ++ "'"); |
| 658 | } | 658 | } |
| 659 | | 659 | |
| 660 | return formatInt(int_value, radix, uppercase, options, writer); | 660 | return formatInt(int_value, radix, uppercase, options, writer); |
| ... | @@ -681,7 +681,7 @@ fn formatFloatValue( | ... | @@ -681,7 +681,7 @@ fn formatFloatValue( |
| 681 | else => |e| return e, | 681 | else => |e| return e, |
| 682 | }; | 682 | }; |
| 683 | } else { | 683 | } else { |
| 684 | @compileError("Unknown format string: '" ++ fmt ++ "'"); | 684 | @compileError("Unsupported format string '" ++ fmt ++ "' for type '" ++ @typeName(@TypeOf(value)) ++ "'"); |
| 685 | } | 685 | } |
| 686 | | 686 | |
| 687 | return formatBuf(buf_stream.getWritten(), options, writer); | 687 | return formatBuf(buf_stream.getWritten(), options, writer); |
| ... | @@ -715,7 +715,7 @@ pub fn formatText( | ... | @@ -715,7 +715,7 @@ pub fn formatText( |
| 715 | } else if (comptime std.mem.eql(u8, fmt, "Z")) { | 715 | } else if (comptime std.mem.eql(u8, fmt, "Z")) { |
| 716 | @compileError("specifier 'Z' has been deprecated, wrap your argument in std.zig.fmtEscapes instead"); | 716 | @compileError("specifier 'Z' has been deprecated, wrap your argument in std.zig.fmtEscapes instead"); |
| 717 | } else { | 717 | } else { |
| 718 | @compileError("Unknown format string: '" ++ fmt ++ "'"); | 718 | @compileError("Unsupported format string '" ++ fmt ++ "' for type '" ++ @typeName(@TypeOf(value)) ++ "'"); |
| 719 | } | 719 | } |
| 720 | } | 720 | } |
| 721 | | 721 | |