From 804b1180fe452e13d1b0444f72f415f505ccba57 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 19 Nov 2025 22:30:25 +0200 Subject: [PATCH] mu-server: improve error message for temp-file Make it clear what exactly could not be created. --- lib/mu-server.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mu-server.cc b/lib/mu-server.cc index 9aae7cfe..35d38b31 100644 --- a/lib/mu-server.cc +++ b/lib/mu-server.cc @@ -65,7 +65,8 @@ struct OutputStream { mu_format("mu-{}.eld", g_get_monotonic_time()))}, out_{std::ofstream{fname_}} { if (!out().good()) - throw Mu::Error{Error::Code::File, "failed to create temp-file"}; + throw Mu::Error{Error::Code::File, + "failed to create temp-file '{}'", fname_}; } /** * Construct an OutputStream for a stringstream