| ... | ... | @@ -193,7 +193,11 @@ fn make(step: *Step, prog_node: *std.Progress.Node) !void { |
| 193 | 193 | .autoconf => |file_source| { |
| 194 | 194 | try output.appendSlice(c_generated_line); |
| 195 | 195 | const src_path = file_source.getPath(b); |
| 196 | | const contents = try std.fs.cwd().readFileAlloc(arena, src_path, self.max_bytes); |
| 196 | const contents = std.fs.cwd().readFileAlloc(arena, src_path, self.max_bytes) catch |err| { |
| 197 | return step.fail("unable to read autoconf input file '{s}': {s}", .{ |
| 198 | src_path, @errorName(err), |
| 199 | }); |
| 200 | }; |
| 197 | 201 | try render_autoconf(step, contents, &output, self.values, src_path); |
| 198 | 202 | }, |
| 199 | 203 | .cmake => |file_source| { |