From cae631d7b7e5fff47c02792ebe823f5e382f32f4 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Wed, 10 Apr 2024 21:54:31 +0300 Subject: [PATCH] Fix build error in API handler. (cherry picked from commit 46e183920385f5a040df948e35ecc8dcf80cd2ee) --- include/api/api_handler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/api/api_handler.h b/include/api/api_handler.h index 433db158e4..daf668f5a4 100644 --- a/include/api/api_handler.h +++ b/include/api/api_handler.h @@ -92,7 +92,7 @@ protected: HANDLER_RESULT( HandlerType::* aHandler )( RequestType&, const HANDLER_CONTEXT& ) ) { - std::string typeName = RequestType().GetFriendlyName(); + std::string typeName = RequestType().GetTypeName(); wxASSERT_MSG( !m_handlers.count( typeName ), wxString::Format( "Duplicate API handler for type %s", typeName ) ); @@ -138,7 +138,7 @@ private: if( !aRequest.message().UnpackTo( &aDest ) ) { std::string msg = fmt::format( "could not unpack message of type {} from request", - aDest.GetFriendlyName() ); + aDest.GetTypeName() ); aReply.mutable_status()->set_status( ApiStatusCode::AS_BAD_REQUEST ); aReply.mutable_status()->set_error_message( msg ); return false;