lttng: Capture is only supported by tracepoint and syscall event-rules
[lttng-tools.git] / src / bin / lttng / commands / add_trigger.c
index b3b1dade11174d7b1481c4d599f6658267bead79..feba92f6fb9c33c2ab0600a6698277c9716b3c6e 100644 (file)
@@ -1115,6 +1115,10 @@ struct lttng_condition *handle_condition_event(int *argc, const char ***argv)
                status = lttng_condition_event_rule_append_capture_descriptor(
                                c, *expr);
                if (status != LTTNG_CONDITION_STATUS_OK) {
+                       if (status == LTTNG_CONDITION_STATUS_UNSUPPORTED) {
+                               ERR("The capture feature is unsupported by the event-rule condition type");
+                       }
+
                        goto error;
                }
 
This page took 0.02313 seconds and 4 git commands to generate.