From fa3a72ba31301b625eef3fc01c5a9d3fbf7ef296 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 3 Jul 2012 12:02:16 +0200 Subject: Tweak error messages --- src/indexamajig.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/indexamajig.c b/src/indexamajig.c index e9ee0f7a..b09a00aa 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -416,17 +416,18 @@ static void process_image(const struct index_args *iargs, fd = open(outfile, O_WRONLY); if ( fd == -1 ) { - ERROR("Error on opening\n"); + ERROR("Couldn't open output stream ('%s').\n", outfile); exit(1); } if ( fcntl(fd, F_SETLKW, &fl) == -1 ) { - ERROR("Error on setting lock wait\n"); + ERROR("Couldn't get lock on output stream.\n"); exit(1); } fh = fdopen(fd, "a"); if ( fh == NULL ) { - ERROR("Couldn't open stream '%s'.\n", outfilename); + ERROR("Couldn't fdopen() the output stream.\n"); + exit(1); } write_chunk(fh, &image, hdfile, iargs->stream_flags); fflush(fh); -- cgit v1.2.3