summaryrefslogtreecommitdiff
path: root/parse/use.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-23 02:24:42 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-23 02:26:01 -0800
commitd29f8b95128b46048e5dbac897dc27fe70efe3c0 (patch)
tree4a077260c4cb40f03f371dc08aa9a5a2d458c190 /parse/use.c
parenta563b40a6af1ee03729918c8a15b48e06bcdeec2 (diff)
downloadmc-d29f8b95128b46048e5dbac897dc27fe70efe3c0.tar.gz
Print search path on failing to load usefile.
Diffstat (limited to 'parse/use.c')
-rw-r--r--parse/use.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse/use.c b/parse/use.c
index e7f86cf..23cd96e 100644
--- a/parse/use.c
+++ b/parse/use.c
@@ -1020,9 +1020,10 @@ void readuse(Node *use, Stab *st, Vis vis)
}
}
if (!fd) {
- fatal(use, "could not open usefile %s in", use->use.name);
+ fprintf(stderr, "could not open usefile %s in search path:\n", use->use.name);
for (i = 0; i < nincpaths; i++)
- printf("\t%s\n", incpaths[i]);
+ fprintf(stderr, "\t%s\n", incpaths[i]);
+ exit(1);
}
if (!loaduse(p, fd, st, vis))