summaryrefslogtreecommitdiff
path: root/alsactl/state.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-05-23 11:58:27 +0200
committerTakashi Iwai <tiwai@suse.de>2007-05-23 11:58:27 +0200
commite3ccd2031b790886f36d4bbc29627a372a7a0d3d (patch)
tree611a259599f9383d588e4a322388662a245740ef /alsactl/state.c
parent53eb911fb7a40f375c6dfd5cb1f2ba4ea9fd8abe (diff)
downloadalsa-utils-e3ccd2031b790886f36d4bbc29627a372a7a0d3d.tar.gz
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>
Diffstat (limited to 'alsactl/state.c')
-rw-r--r--alsactl/state.c3
1 files changed, 3 insertions, 0 deletions
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) {