From 5ce1c416532931cc58135695e16159a9d926fd82 Mon Sep 17 00:00:00 2001 From: Ricardo Abreu Date: Thu, 27 Jul 2023 12:55:27 +0100 Subject: [PATCH] [vm] Fix missing braces in error msg formatting --- src/platform/backends/shared/base_virtual_machine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/backends/shared/base_virtual_machine.cpp b/src/platform/backends/shared/base_virtual_machine.cpp index f6d526cfee..b0a70e59bc 100644 --- a/src/platform/backends/shared/base_virtual_machine.cpp +++ b/src/platform/backends/shared/base_virtual_machine.cpp @@ -207,7 +207,7 @@ std::shared_ptr BaseVirtualMachine::take_snapshot(const QDir& sn assert_vm_stopped(state); // precondition if (snapshot_count > max_snapshots) - throw std::runtime_error{fmt::format("Maximum number of snapshots exceeded", max_snapshots)}; + throw std::runtime_error{fmt::format("Maximum number of snapshots exceeded: {}", max_snapshots)}; snapshot_name = name.empty() ? generate_snapshot_name() : name; const auto [it, success] = snapshots.try_emplace(snapshot_name, nullptr);