aboutsummaryrefslogtreecommitdiffstats
path: root/src/serd_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-26 20:15:58 -0500
committerDavid Robillard <d@drobilla.net>2017-12-26 20:15:58 -0500
commit8e49670aef7c092fe8deb2ae82fead75d3e585fa (patch)
tree892242078f970259b32e12308f445771b53c07fa /src/serd_internal.h
parent3d0606010358707ad9f3265e189417929d6b69b7 (diff)
downloadserd-8e49670aef7c092fe8deb2ae82fead75d3e585fa.tar.gz
serd-8e49670aef7c092fe8deb2ae82fead75d3e585fa.tar.bz2
serd-8e49670aef7c092fe8deb2ae82fead75d3e585fa.zip
Print file open error in standard format
Diffstat (limited to 'src/serd_internal.h')
-rw-r--r--src/serd_internal.h3
1 files changed, 2 insertions, 1 deletions
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)