m-default-profile: log error message when failed to get current profile

This commit is contained in:
Julian Bouzas 2021-05-19 11:38:32 -04:00
parent fc41af5c98
commit 2218b5613e

View file

@ -180,7 +180,8 @@ on_device_profile_notified (WpPipewireObject *device, GAsyncResult *res,
/* Finish */
profiles = wp_pipewire_object_enum_params_finish (device, res, &error);
if (error) {
wp_warning_object (self, "failed to get current profile on device");
wp_warning_object (self, "failed to get current profile on device: %s",
error->message);
return;
}