diff --git gtk/MessageLogWindow.cc gtk/MessageLogWindow.cc index 05ca819..6abdab7 100644 --- gtk/MessageLogWindow.cc +++ gtk/MessageLogWindow.cc @@ -227,12 +227,12 @@ void MessageLogWindow::Impl::doSave(Gtk::Window& parent, Glib::ustring const& fi fmt::format( _("Couldn't save '{path}': {error} ({error_code})"), fmt::arg("path", filename), - fmt::arg("error", e.code().message()), - fmt::arg("error_code", e.code().value())), + fmt::arg("error", e.what()), + fmt::arg("error_code", e.what())), false, TR_GTK_MESSAGE_TYPE(ERROR), TR_GTK_BUTTONS_TYPE(CLOSE)); - w->set_secondary_text(e.code().message()); + w->set_secondary_text(e.what()); w->signal_response().connect([w](int /*response*/) mutable { w.reset(); }); w->show(); }