]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsactl - Error message when failing to open the config file
authorTakashi Iwai <tiwai@suse.de>
Wed, 23 May 2007 09:58:27 +0000 (11:58 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 May 2007 09:58:27 +0000 (11:58 +0200)
Tells the user that it was not able to open the config file with the
precise error message.

From: Tomas Pospisek <tpo2@sourcepole.ch>

alsactl/state.c

index d2cf6cf43ecc3a6bfa0e2f00323bca4a36944f20..1beee2324435e8af0801361d76a52d50b38da350 100644 (file)
@@ -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) {