From 8e49670aef7c092fe8deb2ae82fead75d3e585fa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 26 Dec 2017 20:15:58 -0500 Subject: Print file open error in standard format --- src/serd_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/serd_internal.h b/src/serd_internal.h index 9523af91..a74bde38 100644 --- a/src/serd_internal.h +++ b/src/serd_internal.h @@ -51,7 +51,8 @@ serd_fopen(const char* path, const char* mode) { FILE* fd = fopen(path, mode); if (!fd) { - fprintf(stderr, "Error opening file %s (%s)\n", path, strerror(errno)); + fprintf(stderr, "error: failed to open file %s (%s)\n", + path, strerror(errno)); return NULL; } #if defined(HAVE_POSIX_FADVISE) && defined(HAVE_FILENO) -- cgit v1.2.1