From 4d0cdf070aa173c6e4ca23ff05e00a5f1731efa5 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku <kaz@kylheku.com> Date: Wed, 8 Mar 2017 20:18:19 -0800 Subject: Don't sweep bad data source under the rug. * match.c (open_data_source): If the data source isn't a string or stream, then error out. --- match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'match.c') diff --git a/match.c b/match.c index d67f968b..cda3c28c 100644 --- a/match.c +++ b/match.c @@ -4423,7 +4423,7 @@ static void open_data_source(match_files_ctx *c) if ((c->data = lazy_stream_cons(name))) c->data_lineno = one; } else { - c->data = nil; + sem_error(specline, lit("~s doesn't denote a valid data source"), name, nao); } } else if (c->data == t && c->files == nil) { if (opt_compat && opt_compat <= 170) { -- cgit v1.2.3