ref: b7730c04c8c83ad6a536a64e549d4d88cc636feb
parent: e4832da74d8722e6313a64db829473f4f5a3b3e6
author: Ori Bernstein <ori@markovcorp.com>
date: Mon Aug 7 10:10:41 EDT 2017
Failing to load a usefile isn't a crash. Exit with a sane message.
--- a/parse/use.c
+++ b/parse/use.c
@@ -1147,7 +1147,7 @@
}
if (!loaduse(p, fd, st, vis))
- die("Could not load usefile %s from %s", use->use.name, p);
+ fatal(use, "unable to load %s (full path: %s)", use->use.name, p);
free(p);
}