summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-08-07 14:10:41 -0700
committerOri Bernstein <ori@markovcorp.com>2017-08-07 14:10:41 -0700
commitb7730c04c8c83ad6a536a64e549d4d88cc636feb (patch)
treebd70a1c767ee6adeb28a89052ede58c6467d88c7 /parse
parente4832da74d8722e6313a64db829473f4f5a3b3e6 (diff)
downloadmc-b7730c04c8c83ad6a536a64e549d4d88cc636feb.tar.gz
Failing to load a usefile isn't a crash.
Exit with a sane message.
Diffstat (limited to 'parse')
-rw-r--r--parse/use.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/use.c b/parse/use.c
index 994020c..f694cb7 100644
--- a/parse/use.c
+++ b/parse/use.c
@@ -1147,7 +1147,7 @@ readuse(Node *use, Stab *st, Vis vis)
}
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);
}