summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-30 13:55:24 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-30 13:55:24 -0500
commited8a56cc65411b8d00e4a8a9366855ea101f2e27 (patch)
tree654f6c2f1a2241598c96d5755aa0c1088cb890cb /buffer.c
parent2994bf93de60930af3855db7a230c27be77de4ef (diff)
better startup, informative message when nothing's open
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buffer.c b/buffer.c
index d7699db..3649a68 100644
--- a/buffer.c
+++ b/buffer.c
@@ -625,7 +625,7 @@ Status buffer_load_file(TextBuffer *buffer, char const *filename) {
success = false;
}
} else {
- buffer_seterr(buffer, "File %s does not exist.", filename);
+ buffer_seterr(buffer, "Couldn't open file %s: %s.", filename, strerror(errno));
success = false;
}
return success;