From e0b3869075eb6dd4d2d515f80056e2eeb1128fae Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 22 May 2025 10:22:16 +0200 Subject: feat(btb)!: Introducing libBTB, better API. also: - The Codebase has been improved. - Error codes are now string messages. Signed-off-by: Amlal El Mahrouss --- src/IManifestBuilder.cc | 2 +- src/JSONManifestBuilder.cc | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/IManifestBuilder.cc b/src/IManifestBuilder.cc index e3cfc6b..b3f4de8 100644 --- a/src/IManifestBuilder.cc +++ b/src/IManifestBuilder.cc @@ -3,4 +3,4 @@ // Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved. // ============================================================= // -#include +#include diff --git a/src/JSONManifestBuilder.cc b/src/JSONManifestBuilder.cc index f70450d..46a8518 100644 --- a/src/JSONManifestBuilder.cc +++ b/src/JSONManifestBuilder.cc @@ -3,8 +3,7 @@ // Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved. // ============================================================= // -#include -#include +#include using String = std::string; using JSON = nlohmann::json; @@ -91,7 +90,7 @@ bool JSONManifestBuilder::buildTarget(int arg_sz, const char* arg_val, const boo auto ret_exec = std::system(command.c_str()); if (ret_exec > 0) { - BTB::Logger::info() << "error: exec exit with code: " << ret_exec << "" << std::endl; + BTB::Logger::info() << "error: exit with message: " << std::strerror(ret_exec) << "" << std::endl; return false; } -- cgit v1.2.3