aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler.c')
-rw-r--r--src/compiler.c5
1 files changed, 4 insertions, 1 deletions
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) {