From a122b22dab7a560fb925c5afb39b04f0fded85b7 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 17 Apr 2025 09:50:13 +0200 Subject: [PATCH] Core: Use the correct result Amends 871c93f652ddea81d8f69cfbcc100bdeb5fe17d9. Change-Id: I9c8ae78f83c3833352054748241ae388a62cd3dd Reviewed-by: hjk --- src/plugins/coreplugin/externaltool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/externaltool.cpp b/src/plugins/coreplugin/externaltool.cpp index 6e14c95a9d8..bb616292021 100644 --- a/src/plugins/coreplugin/externaltool.cpp +++ b/src/plugins/coreplugin/externaltool.cpp @@ -440,7 +440,7 @@ Result ExternalTool::createFromFile(const FilePath &filePath, co return ResultError(contents.error()); Result res = ExternalTool::createFromXml(contents.value(), locale); if (!res) - return ResultError(contents.error()); + return ResultError(res.error()); ExternalTool *tool = res.value(); tool->m_filePath = filePath.absoluteFilePath(); return tool;