From e4d170486c3093d23970816877114ea8d99879f7 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Tue, 22 Feb 2022 02:27:16 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20update=20return=20status?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit in case if smth is gone wrong --- src/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.cpp b/src/utils.cpp index a9c7d40..766aba1 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -184,7 +184,7 @@ std::string exec(const std::string_view& command, const bool& interactive) noexc if (!pipe) { spdlog::error("popen failed! '{}'", command); - return "1"; + return "-1"; } std::string result{};