LADI
/
spa
1
Fork 0

module-rt: add some more error to errno mappings

This commit is contained in:
Wim Taymans 2023-05-07 13:52:17 +02:00
parent a20d2406c3
commit 5942f2d6aa
1 changed files with 8 additions and 1 deletions

View File

@ -277,7 +277,14 @@ static int translate_error(const char *name)
if (spa_streq(name, DBUS_ERROR_ACCESS_DENIED) ||
spa_streq(name, DBUS_ERROR_AUTH_FAILED))
return -EACCES;
if (spa_streq(name, DBUS_ERROR_IO_ERROR))
return -EIO;
if (spa_streq(name, DBUS_ERROR_NOT_SUPPORTED))
return -ENOTSUP;
if (spa_streq(name, DBUS_ERROR_INVALID_ARGS))
return -EINVAL;
if (spa_streq(name, DBUS_ERROR_TIMED_OUT))
return -ETIMEDOUT;
return -EIO;
}