authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-08-23 23:22:48-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-08-23 23:22:48-04:00
log3a02ba9b82faf2521af22857554690fbacc7fa8e
treeeee726b69116d341fd357e062336a712d88429da
parent6c064cfd885ed2bc243dc32eb84703dcb60bd68d

fix error message for incorrect panic handler fn signature

closes #1353

1 files changed, 1 insertions(+), 1 deletions(-)

src/analyze.cpp+1-1
......@@ -3035,7 +3035,7 @@ static bool scope_is_root_decls(Scope *scope) {
30353035
30363036static void wrong_panic_prototype(CodeGen *g, AstNode *proto_node, TypeTableEntry *fn_type) {
30373037 add_node_error(g, proto_node,
3038 buf_sprintf("expected 'fn([]const u8, ?&builtin.StackTrace) unreachable', found '%s'",
3038 buf_sprintf("expected 'fn([]const u8, ?*builtin.StackTrace) noreturn', found '%s'",
30393039 buf_ptr(&fn_type->name)));
30403040}
30413041