ref: a563b40a6af1ee03729918c8a15b48e06bcdeec2
parent: cf4e7fe3b953d06ea771eefce06c94e3cfec842b
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jan 22 21:16:55 EST 2016
Improve error message if we fail to open a usefile.
--- a/parse/use.c
+++ b/parse/use.c
@@ -1016,10 +1016,14 @@
free(t);
break;
}
+ free(p);
}
}
- if (!fd)
- fatal(use, "Could not open %s", use->use.name);
+ if (!fd) {
+ fatal(use, "could not open usefile %s in", use->use.name);
+ for (i = 0; i < nincpaths; i++)
+ printf("\t%s\n", incpaths[i]);
+ }
if (!loaduse(p, fd, st, vis))
die("Could not load usefile %s from %s", use->use.name, p);