cli: Inform user when no feedback was found
This might either be because the event doesn't exist or when the profile doesn't have any feedback on the current level. Closes: https://source.puri.sm/Librem5/feedbackd/-/issues/76
This commit is contained in:
committed by
Guido Günther
parent
e2c9b530b9
commit
212682fb0f
@@ -93,6 +93,9 @@ trigger_event (const char *name, const gchar *profile, gboolean important, gint
|
|||||||
g_main_loop_run (loop);
|
g_main_loop_run (loop);
|
||||||
g_main_loop_unref (loop);
|
g_main_loop_unref (loop);
|
||||||
|
|
||||||
|
if (lfb_event_get_end_reason (event) == LFB_EVENT_END_REASON_NOT_FOUND)
|
||||||
|
g_print ("No feedback found for '%s' at level '%s'\n", name, lfb_get_feedback_profile ());
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user