mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
core: add more verbose error info
I'm debugging an issue, and find that it's more useful for users to know which directory hasn't been created instead of just knowing error code.
This commit is contained in:
parent
1bf1815080
commit
9b80d1d14a
1 changed files with 4 additions and 4 deletions
|
|
@ -1508,7 +1508,7 @@ char *pa_get_state_dir(void) {
|
||||||
* dir then this will break. */
|
* dir then this will break. */
|
||||||
|
|
||||||
if (pa_make_secure_dir(d, 0700U, (uid_t) -1, (gid_t) -1, TRUE) < 0) {
|
if (pa_make_secure_dir(d, 0700U, (uid_t) -1, (gid_t) -1, TRUE) < 0) {
|
||||||
pa_log_error("Failed to create secure directory: %s", pa_cstrerror(errno));
|
pa_log_error("Failed to create secure directory (%s): %s", d, pa_cstrerror(errno));
|
||||||
pa_xfree(d);
|
pa_xfree(d);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
@ -1650,7 +1650,7 @@ char *pa_get_runtime_dir(void) {
|
||||||
if (d) {
|
if (d) {
|
||||||
|
|
||||||
if (pa_make_secure_dir(d, m, (uid_t) -1, (gid_t) -1, TRUE) < 0) {
|
if (pa_make_secure_dir(d, m, (uid_t) -1, (gid_t) -1, TRUE) < 0) {
|
||||||
pa_log_error("Failed to create secure directory: %s", pa_cstrerror(errno));
|
pa_log_error("Failed to create secure directory (%s): %s", d, pa_cstrerror(errno));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1664,7 +1664,7 @@ char *pa_get_runtime_dir(void) {
|
||||||
|
|
||||||
if (pa_make_secure_dir(k, m, (uid_t) -1, (gid_t) -1, TRUE) < 0) {
|
if (pa_make_secure_dir(k, m, (uid_t) -1, (gid_t) -1, TRUE) < 0) {
|
||||||
free(k);
|
free(k);
|
||||||
pa_log_error("Failed to create secure directory: %s", pa_cstrerror(errno));
|
pa_log_error("Failed to create secure directory (%s): %s", k, pa_cstrerror(errno));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1677,7 +1677,7 @@ char *pa_get_runtime_dir(void) {
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (pa_make_secure_dir(d, m, (uid_t) -1, (gid_t) -1, TRUE) < 0) {
|
if (pa_make_secure_dir(d, m, (uid_t) -1, (gid_t) -1, TRUE) < 0) {
|
||||||
pa_log_error("Failed to create secure directory: %s", pa_cstrerror(errno));
|
pa_log_error("Failed to create secure directory (%s): %s", d, pa_cstrerror(errno));
|
||||||
pa_xfree(d);
|
pa_xfree(d);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue