Fix: snapshot record error handling
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 17dcfc41685a2562aa7d01f297cabe324af7354c..6a195e1bdd8352c752ab1b22de82bd08ac573faf 100644 (file)
@@ -2577,13 +2577,7 @@ static int record_kernel_snapshot(struct ltt_kernel_session *ksess,
        }
 
        ret = kernel_snapshot_record(ksess, output, wait, nb_streams);
-       if (ret < 0) {
-               if (ret == -EINVAL) {
-                       ret = LTTNG_ERR_INVALID;
-                       goto error_snapshot;
-               }
-
-               ret = LTTNG_ERR_SNAPSHOT_FAIL;
+       if (ret != LTTNG_OK) {
                goto error_snapshot;
        }
 
This page took 0.022957 seconds and 4 git commands to generate.