From: Takashi Iwai Date: Wed, 23 May 2007 09:58:27 +0000 (+0200) Subject: alsactl - Error message when failing to open the config file X-Git-Tag: v1.0.14~5 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=e3ccd2031b790886f36d4bbc29627a372a7a0d3d;p=alsa-utils.git alsactl - Error message when failing to open the config file Tells the user that it was not able to open the config file with the precise error message. From: Tomas Pospisek --- diff --git a/alsactl/state.c b/alsactl/state.c index d2cf6cf..1beee23 100644 --- a/alsactl/state.c +++ b/alsactl/state.c @@ -1311,6 +1311,9 @@ int load_state(const char *file, const char *cardname) error("snd_config_load error: %s", snd_strerror(err)); return err; } + } else { + error("Cannot open %s for reading: %s", file, snd_strerror(err)); + return err; } if (!cardname) {