From 284be00c81407735cc8ddec1f1353b867b2deffd Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 19 Jan 2025 16:33:32 +0200 Subject: improve export model --- src/compiler.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/compiler.c') diff --git a/src/compiler.c b/src/compiler.c index b4a6e9b..881326c 100644 --- a/src/compiler.c +++ b/src/compiler.c @@ -159,7 +159,10 @@ struct scope *process_file(const char *file) } char *real = realpath(base, NULL); - assert(real); + if (!real) { + error("no such file: %s", file); + goto out; + } struct scope **exists = scopes_find(&scopes, real); if (exists) { -- cgit v1.3