| ... | ... | @@ -40,7 +40,7 @@ pub fn parseFromSlice(alloc: std.mem.Allocator, path: string, input: string, opt |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | fn parseElementPrecise(alloc: std.mem.Allocator, p: *Parser, comptime E: type) E!ValueIndex { |
| 43 | | return @errorCast(parseElement(alloc, p)); |
| 43 | return parseElement(alloc, p) catch |err| @errorCast(err); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | fn parseElement(alloc: std.mem.Allocator, p: *Parser) anyerror!ValueIndex { |
| ... | ... | @@ -433,7 +433,7 @@ pub const Document = struct { |
| 433 | 433 | pub fn stringify(this: *const Document, writer: anytype, space: Space, indent: u8) Instance(@TypeOf(writer)).WriteError!void { |
| 434 | 434 | const fill = space.fill(); |
| 435 | 435 | try writer.writeNTimes(fill, indent); |
| 436 | | return @errorCast(this.root.stringify(writer, space, indent)); |
| 436 | return this.root.stringify(writer, space, indent) catch |err| @errorCast(err); |
| 437 | 437 | } |
| 438 | 438 | }; |
| 439 | 439 | |