summaryrefslogtreecommitdiff
path: root/muse
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2018-07-23 15:15:08 -0700
committerOri Bernstein <ori@markovcorp.com>2018-07-23 15:15:52 -0700
commit3dca3385472541f62ef9455814a5599a8e97c03a (patch)
tree3fd32dca594c18062e07fa3b4d9614dffb3e7ab1 /muse
parent11d385224d630ae234c7e8c4212cfefac8fd167d (diff)
downloadmc-3dca3385472541f62ef9455814a5599a8e97c03a.tar.gz
Don't abort when we can't open a file.
Diffstat (limited to 'muse')
-rw-r--r--muse/muse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/muse/muse.c b/muse/muse.c
index d1ba0cf..967801c 100644
--- a/muse/muse.c
+++ b/muse/muse.c
@@ -47,8 +47,10 @@ mergeuse(char *path)
st = file->file.globls;
f = fopen(path, "r");
- if (!f)
- die("Couldn't open %s\n", path);
+ if (!f) {
+ fprintf(stderr, "couldn't open %s\n", path);
+ exit(1);
+ }
loaduse(path, f, st, Visexport);
fclose(f);
}