Wrap calls to fmt::format to catch formatting exceptions
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.cpp
index bdc7d6d2065b66eba162f58e620166b706bc5668..d7b1275b0814571eece6f951fda7bd23d2247512 100644 (file)
@@ -6612,7 +6612,7 @@ static int handle_app_register_channel_notification(int sock,
                                goto reply;
                        }
                }
-       } catch (std::exception& ex) {
+       } catch (const std::exception& ex) {
                ERR("Failed to handle application context: %s", ex.what());
                ret_code = -EINVAL;
                goto reply;
@@ -6842,7 +6842,7 @@ static int add_enum_ust_registry(int sock,
                application_reply_code = 0;
        } catch (const std::exception& ex) {
                ERR("%s: %s",
-                   fmt::format(
+                   lttng::format(
                            "Failed to create or find enumeration provided by application: app = {}, enumeration name = {}",
                            *app,
                            name)
This page took 0.024176 seconds and 4 git commands to generate.