aboutsummaryrefslogtreecommitdiff
path: root/src/preproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/preproc.c')
-rw-r--r--src/preproc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/preproc.c b/src/preproc.c
index cff8224..cd83e2f 100644
--- a/src/preproc.c
+++ b/src/preproc.c
@@ -416,7 +416,8 @@ push_source(const char *name, int once)
fp = fopen(name, "r");
if (!fp) {
- grecs_error(&LOCUS, errno, _("Cannot open `%s'"), name);
+ grecs_error(context_stack ? &LOCUS : NULL, errno,
+ _("Cannot open `%s'"), name);
return 1;
}

Return to:

Send suggestions and report system problems to the System administrator.