From 04684cc88b2aefa4856cea85040ca2d46a3fe879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 7 Jun 2025 17:18:51 +0200 Subject: [PATCH] Minor error message improvement --- Core/Util/PortManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/Util/PortManager.cpp b/Core/Util/PortManager.cpp index ac6b17d291..db92446a22 100644 --- a/Core/Util/PortManager.cpp +++ b/Core/Util/PortManager.cpp @@ -35,6 +35,7 @@ #include "Common/Thread/ThreadUtil.h" #include "Common/System/OSD.h" #include "Common/Log.h" +#include "Common/StringUtils.h" #include "Core/Config.h" #include "Core/Core.h" #include "Core/System.h" @@ -200,7 +201,7 @@ bool PortManager::Initialize(const unsigned int timeout) { ERROR_LOG(Log::sceNet, "PortManager - upnpDiscover failed (error: %i) or No UPnP device detected", error); if (g_Config.bEnableUPnP) { auto n = GetI18NCategory(I18NCat::NETWORKING); - g_OSD.Show(OSDType::MESSAGE_ERROR, n->T("Unable to find UPnP device")); + g_OSD.Show(OSDType::MESSAGE_ERROR, StringFromFormat("%s (%d)", n->T_cstr("Unable to find UPnP device"), error), 0.0f, "upnp_warning"); } m_InitState = UPNP_INITSTATE_NONE; #endif // WITH_UPNP