From c4122feb8d527b040192a0f75b3affd32fdf5caa Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 7 Jul 2020 18:38:19 +1000 Subject: [PATCH] Print result when failing to open the encoder in audioconverter. --- tools/audioconverter/audioconverter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/audioconverter/audioconverter.c b/tools/audioconverter/audioconverter.c index 2c1ce50e..bc536d42 100644 --- a/tools/audioconverter/audioconverter.c +++ b/tools/audioconverter/audioconverter.c @@ -305,7 +305,7 @@ int main(int argc, char** argv) result = ma_encoder_init_file(pOutputFilePath, &encoderConfig, &encoder); if (result != MA_SUCCESS) { ma_decoder_uninit(&decoder); - printf("Failed to open output file. Check that the directory exists and that the file is not already opened by another process."); + printf("Failed to open output file. Check that the directory exists and that the file is not already opened by another process. %s", ma_result_description(result)); return -1; }