diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-22 10:22:16 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-22 10:22:16 +0200 |
| commit | e0b3869075eb6dd4d2d515f80056e2eeb1128fae (patch) | |
| tree | 5158781eb6c8513d69c703e1847e1dd84094c42f /src/JSONManifestBuilder.cc | |
| parent | 7927f01e875ef76185535d209c14230fe9be183d (diff) | |
feat(btb)!: Introducing libBTB, better API.
also:
- The Codebase has been improved.
- Error codes are now string messages.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/JSONManifestBuilder.cc')
| -rw-r--r-- | src/JSONManifestBuilder.cc | 5 |
1 files changed, 2 insertions, 3 deletions
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 <JSONManifestBuilder.h> -#include <initializer_list> +#include <BTBKit/JSONManifestBuilder.h> 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; } |
