aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-06-29 15:04:57 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-06-29 15:04:57 +0200
commit8649f9c225664c9b9efc9b6e39c59fa79715df68 (patch)
tree3b4b4cf50244b424d45e77067d6267783b9e89e6
parent2db5551a7e3b9820780266d79865b9c2a94df81c (diff)
downloadmblaze-8649f9c225664c9b9efc9b6e39c59fa79715df68.tar.gz
seq: blaze822_seq_open: display error when opening the sequence failed
-rw-r--r--seq.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/seq.c b/seq.c
index 9ff7f59..95fca91 100644
--- a/seq.c
+++ b/seq.c
@@ -56,8 +56,12 @@ blaze822_seq_open(char *file)
char *map;
off_t len;
- if (slurp(file, &map, &len) != 0)
+ int r = slurp(file, &map, &len);
+ if (r != 0) {
+ fprintf(stderr, "could not read sequence '%s': %s\n",
+ file, strerror(r));
return 0;
+ }
return map;
}