From a0f1ca8656ce629007108e077132617df9fe6817 Mon Sep 17 00:00:00 2001 From: Sandrine Pataut Date: Tue, 10 Feb 2026 18:51:08 +0100 Subject: [PATCH] update using git2cpp_error_code in config_subcommand --- src/subcommand/config_subcommand.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/subcommand/config_subcommand.cpp b/src/subcommand/config_subcommand.cpp index 3472eac..5cde788 100644 --- a/src/subcommand/config_subcommand.cpp +++ b/src/subcommand/config_subcommand.cpp @@ -56,7 +56,7 @@ void config_subcommand::run_get() { if (m_name.empty()) { - throw git_exception("error: wrong number of arguments, should be 1", 129); + throw git_exception("error: wrong number of arguments, should be 1", git2cpp_error_code::BAD_ARGUMENT); } auto directory = get_current_git_path(); @@ -73,7 +73,7 @@ void config_subcommand::run_set() { if (m_name.empty() | m_value.empty()) { - throw git_exception("error: wrong number of arguments, should be 2", 129); + throw git_exception("error: wrong number of arguments, should be 2", git2cpp_error_code::BAD_ARGUMENT); } auto directory = get_current_git_path(); @@ -87,7 +87,7 @@ void config_subcommand::run_unset() { if (m_name.empty()) { - throw git_exception("error: wrong number of arguments, should be 1", 129); + throw git_exception("error: wrong number of arguments, should be 1", git2cpp_error_code::BAD_ARGUMENT); } auto directory = get_current_git_path();