From: Takashi Iwai Date: Wed, 23 May 2007 10:04:49 +0000 (+0200) Subject: alsactl - More explicit open error message (#2) X-Git-Tag: v1.0.14~2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=f5d76dde4ec8c3b6a5920f6ac383d22759c34615;p=alsa-utils.git alsactl - More explicit open error message (#2) same as last patch, this time for the store command Tomas Pospisek --- diff --git a/alsactl/state.c b/alsactl/state.c index 1beee23..a20f4e7 100644 --- a/alsactl/state.c +++ b/alsactl/state.c @@ -1277,7 +1277,7 @@ int save_state(const char *file, const char *cardname) else err = snd_output_stdio_open(&out, file, "w"); if (err < 0) { - error("Cannot open %s for writing", file); + error("Cannot open %s for writing: %s", file, snd_strerror(err)); return -errno; } err = snd_config_save(config, out);