Wrap calls to fmt::format to catch formatting exceptions
[lttng-tools.git] / src / bin / lttng / commands / stop.cpp
index 8b33bd7f4af5e7dc46c2c5b231432c059a0befe2..af42d98db1f291f12d615976b29d3646cd573316 100644 (file)
@@ -91,7 +91,7 @@ cmd_error_code stop_tracing(const char *session_name)
 
        ret = lttng_stop_tracing_no_wait(session_name);
        if (ret < 0) {
-               LTTNG_THROW_CTL(fmt::format("Failed to start session `{}`", session_name),
+               LTTNG_THROW_CTL(lttng::format("Failed to start session `{}`", session_name),
                                static_cast<lttng_error_code>(-ret));
        }
 
This page took 0.023746 seconds and 4 git commands to generate.