| ... | @@ -544,7 +544,7 @@ pub fn formatType( | ... | @@ -544,7 +544,7 @@ pub fn formatType( |
| 544 | return formatText(value, actual_fmt, options, writer); | 544 | return formatText(value, actual_fmt, options, writer); |
| 545 | } | 545 | } |
| 546 | } | 546 | } |
| 547 | @compileError("Unknown format string: '" ++ actual_fmt ++ "'"); | 547 | @compileError("Unknown format string: '" ++ actual_fmt ++ "' for type '" ++ @typeName(T) ++ "'"); |
| 548 | }, | 548 | }, |
| 549 | .Enum, .Union, .Struct => { | 549 | .Enum, .Union, .Struct => { |
| 550 | return formatType(value.*, actual_fmt, options, writer, max_depth); | 550 | return formatType(value.*, actual_fmt, options, writer, max_depth); |
| ... | @@ -562,7 +562,7 @@ pub fn formatType( | ... | @@ -562,7 +562,7 @@ pub fn formatType( |
| 562 | return formatText(mem.span(value), actual_fmt, options, writer); | 562 | return formatText(mem.span(value), actual_fmt, options, writer); |
| 563 | } | 563 | } |
| 564 | } | 564 | } |
| 565 | @compileError("Unknown format string: '" ++ actual_fmt ++ "'"); | 565 | @compileError("Unknown format string: '" ++ actual_fmt ++ "' for type '" ++ @typeName(T) ++ "'"); |
| 566 | }, | 566 | }, |
| 567 | .Slice => { | 567 | .Slice => { |
| 568 | if (actual_fmt.len == 0) | 568 | if (actual_fmt.len == 0) |