From 0a52a40111466b82d3dc40031fe0b4e9d1f2f507 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Wed, 26 Oct 2022 14:06:51 +0200 Subject: [PATCH] tests/cpp_test.cc: improve error reporting in check_title The test somehow briefly failed for me. This will help debug if it happens again. --- tests/cpp_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cpp_test.cc b/tests/cpp_test.cc index 6e39da6d..e05a7370 100644 --- a/tests/cpp_test.cc +++ b/tests/cpp_test.cc @@ -106,7 +106,7 @@ check_title (const SndfileHandle & file, const char * filename) title = file.getString (SF_STR_TITLE) ; if (title == NULL) - { printf ("\n\n%s %d : Error : No title.\n\n", __func__, __LINE__) ; + { printf ("\n\n%s %d : Error : No title for %s.\n\n", __func__, __LINE__, filename) ; exit (1) ; } ;