better error message on incorrect input path

pull/42/head
Christian Krause 9 years ago
parent 510876dda0
commit 56fba37518

@ -134,7 +134,7 @@ int main(int argc, char **argv) {
}
if (ipath && !(gInFile = fopen(ipath, "r")))
die("Can't open input file");
die("can not open input file: %s: %s", ipath, strerror(errno));
if (opath) {
if (gInFile == stdin) {

Loading…
Cancel
Save