From bf52a748037fad46571a9a76009ea1ca66c9d965 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 12 Sep 2017 00:07:37 -0400 Subject: [PATCH] fix error messages --- src/codegen.cpp | 2 +- src/ir.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codegen.cpp b/src/codegen.cpp index 15eac3368..1e8dd76a6 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -5021,7 +5021,7 @@ void codegen_parsec(CodeGen *g, Buf *full_path) { ZigList errors = {0}; int err = parse_h_file(import, &errors, buf_ptr(full_path), g, nullptr); if (err) { - fprintf(stderr, "unable to parse .h file: %s\n", err_str(err)); + fprintf(stderr, "unable to parse C file: %s\n", err_str(err)); exit(1); } diff --git a/src/ir.cpp b/src/ir.cpp index 73f7b1df1..bd002324b 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -13421,7 +13421,7 @@ static TypeTableEntry *ir_analyze_instruction_c_import(IrAnalyze *ira, IrInstruc int err; if ((err = parse_h_buf(child_import, &errors, &cimport_scope->buf, ira->codegen, node))) { - zig_panic("unable to parse h file: %s\n", err_str(err)); + zig_panic("unable to parse C file: %s\n", err_str(err)); } if (errors.length > 0) {