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 <tpo2@sourcepole.ch>
This commit is contained in:
Takashi Iwai 2007-05-23 11:58:27 +02:00
parent 53eb911fb7
commit e3ccd2031b

View file

@ -1311,6 +1311,9 @@ int load_state(const char *file, const char *cardname)
error("snd_config_load error: %s", snd_strerror(err)); error("snd_config_load error: %s", snd_strerror(err));
return err; return err;
} }
} else {
error("Cannot open %s for reading: %s", file, snd_strerror(err));
return err;
} }
if (!cardname) { if (!cardname) {