From 19101cd7267ee157cf021fd66ae27283dd7b12e2 Mon Sep 17 00:00:00 2001 From: Peter Meerwald-Stadler Date: Fri, 10 Dec 2021 17:06:16 +0100 Subject: [PATCH] Reduce scope of err_string; add missing error codes --- src/error.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/error.cpp b/src/error.cpp index 853b814..ef2423d 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -14,8 +14,9 @@ Status::Code Status::code() const noexcept { return ec_; } } // namespace error } // namespace cmkr -const char *err_string[] = { - "Success", "Runtime error", "Initialization error", "CMake generation error", "Build error", +// strings for cmkr::error::Status::Code +static const char *err_string[] = { + "Success", "Runtime error", "Initialization error", "CMake generation error", "Build error", "Clean error", "Install error", }; const char *cmkr_error_status(int i) {