pipewire: return better errno symbol not found

This commit is contained in:
Wim Taymans 2019-10-16 10:43:36 +02:00
parent 2b75f28d8b
commit e28b5b8232

View file

@ -116,8 +116,8 @@ open_plugin(struct registry *registry,
goto error_free_filename; goto error_free_filename;
} }
if ((enum_func = dlsym(hnd, SPA_HANDLE_FACTORY_ENUM_FUNC_NAME)) == NULL) { if ((enum_func = dlsym(hnd, SPA_HANDLE_FACTORY_ENUM_FUNC_NAME)) == NULL) {
res = -ESRCH; res = -ENOSYS;
pw_log_error("can't find enum function"); pw_log_error("can't find enum function: %s", dlerror());
goto error_dlclose; goto error_dlclose;
} }