mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 07:05:42 +01:00
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:
parent
53eb911fb7
commit
e3ccd2031b
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue