From e3ccd2031b790886f36d4bbc29627a372a7a0d3d Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 23 May 2007 11:58:27 +0200 Subject: [PATCH] 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 --- alsactl/state.c | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.47.1