From 7d250092d842e502bf5a571cefad999838997313 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 22 Jan 2016 20:42:03 -0800 Subject: Add debug trace to @(require). * match.c (v_require): Produce trace when require fails. --- match.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/match.c b/match.c index 9eb1a532..187f7ec9 100644 --- a/match.c +++ b/match.c @@ -3626,8 +3626,10 @@ static val v_require(match_files_ctx *c) val args = rest(first_spec); val ret; ret = eval_progn_with_bindings(args, c->spec, c->bindings, specline); - if (!ret) + if (!ret) { + debuglf(specline, lit("require failed"), nao); return ret; + } return next_spec_k; } -- cgit v1.2.3