From f5f0f2b434d384cb781ed1db3e0041590e35b643 Mon Sep 17 00:00:00 2001 From: Peter Hanappe Date: Wed, 26 Nov 2003 22:07:01 +0000 Subject: [PATCH] Fixed small bug in error handling --- fluidsynth/src/fluid_alsa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fluidsynth/src/fluid_alsa.c b/fluidsynth/src/fluid_alsa.c index 8fe0b9c0..d1ff9306 100644 --- a/fluidsynth/src/fluid_alsa.c +++ b/fluidsynth/src/fluid_alsa.c @@ -213,6 +213,9 @@ new_fluid_alsa_audio_driver2(fluid_settings_t* settings, if (err == -EBUSY) { FLUID_LOG(FLUID_ERR, "The \"%s\" audio device is used by another application", device); goto error_recovery; + } else { + FLUID_LOG(FLUID_ERR, "Failed to open the \"%s\" audio device", device); + goto error_recovery; } }