mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:35:42 +01:00
alsactl - More explicit open error message
Include more explicit error message when open config file in write mode (this is for the "names" command) From: Tomas Pospisek <tpo2@sourcepole.ch>
This commit is contained in:
parent
cdccd6585f
commit
035cbc3f9b
1 changed files with 1 additions and 1 deletions
|
@ -535,7 +535,7 @@ int generate_names(const char *cfgfile)
|
||||||
err = snd_output_stdio_open(&out, cfgfile, "w+");
|
err = snd_output_stdio_open(&out, cfgfile, "w+");
|
||||||
}
|
}
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
error("Cannot open %s for writing", cfgfile);
|
error("Cannot open %s for writing: %s", cfgfile, snd_strerror(err));
|
||||||
return -errno;
|
return -errno;
|
||||||
}
|
}
|
||||||
err = snd_config_save(config, out);
|
err = snd_config_save(config, out);
|
||||||
|
|
Loading…
Reference in a new issue