echo-cancel-test: When fopen() fails tell which file failed

This commit is contained in:
Stefan Huber 2013-02-11 10:56:46 +01:00 committed by Tanu Kaskinen
parent 7eff884848
commit 9b6dced2cb

View file

@ -2103,17 +2103,17 @@ int main(int argc, char* argv[]) {
u.captured_file = fopen(argv[2], "rb");
if (u.captured_file == NULL) {
perror ("fopen failed");
perror ("Could not open capture file");
goto fail;
}
u.played_file = fopen(argv[1], "rb");
if (u.played_file == NULL) {
perror ("fopen failed");
perror ("Could not open play file");
goto fail;
}
u.canceled_file = fopen(argv[3], "wb");
if (u.canceled_file == NULL) {
perror ("fopen failed");
perror ("Could not open canceled file");
goto fail;
}
@ -2156,7 +2156,7 @@ int main(int argc, char* argv[]) {
u.drift_file = fopen(argv[5], "rt");
if (u.drift_file == NULL) {
perror ("fopen failed");
perror ("Could not open drift file");
goto fail;
}
}