]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsactl - More explicit open error message (#2)
authorTakashi Iwai <tiwai@suse.de>
Wed, 23 May 2007 10:04:49 +0000 (12:04 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 May 2007 10:04:49 +0000 (12:04 +0200)
same as last patch, this time for the store command

Tomas Pospisek <tpo2@sourcepole.ch>

alsactl/state.c

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