fix error message for incorrect panic handler fn signature

closes #1353
This commit is contained in:
Andrew Kelley 2018-08-23 23:22:48 -04:00
parent 6c064cfd88
commit 3a02ba9b82

View File

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