ref: 5302f36d38bb75ac624c72986c36e4a20e49ec8e
parent: f97e856a1f1c836a94885038b4200f59c7011115
author: bentley <[email protected]>
date: Mon Jan 18 11:27:42 EST 2010
rgblib: improve file open error message
--- a/src/lib/main.c
+++ b/src/lib/main.c
@@ -1,5 +1,6 @@
#include <ctype.h>
#include <err.h>
+#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -85,7 +86,7 @@
argv[argn]);
} else
errx(EX_NOINPUT,
- "Unable to write module");
+ "Unable to write module '%s' : %s", argv[argn], strerror(errno));
} else
errx(EX_NOINPUT, "Module not found");