From fc1410099d6ccbb72adb54ecffd0711348706ca4 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 27 Feb 2022 20:39:54 +0200 Subject: Have cant_happen() give more information. --- eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 9e644523..013ee062 100644 --- a/eval.c +++ b/eval.c @@ -1172,7 +1172,7 @@ r_get_lhs(NODE *n, bool reference) break; default: - cant_happen(); + cant_happen("unexpected variable type %s", nodetype2str(n->type)); } if (do_lint && reference && var_uninitialized(n)) @@ -1346,7 +1346,7 @@ setup_frame(INSTRUCTION *pc) break; default: - cant_happen(); + cant_happen("unexpected parameter type %s", nodetype2str(m->type)); } r->vname = fp[i].param; } -- cgit v1.2.3