Skip to content

Commit a0f1ca8

Browse files
committed
update using git2cpp_error_code in config_subcommand
1 parent 4bd9b8e commit a0f1ca8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/subcommand/config_subcommand.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void config_subcommand::run_get()
5656
{
5757
if (m_name.empty())
5858
{
59-
throw git_exception("error: wrong number of arguments, should be 1", 129);
59+
throw git_exception("error: wrong number of arguments, should be 1", git2cpp_error_code::BAD_ARGUMENT);
6060
}
6161

6262
auto directory = get_current_git_path();
@@ -73,7 +73,7 @@ void config_subcommand::run_set()
7373
{
7474
if (m_name.empty() | m_value.empty())
7575
{
76-
throw git_exception("error: wrong number of arguments, should be 2", 129);
76+
throw git_exception("error: wrong number of arguments, should be 2", git2cpp_error_code::BAD_ARGUMENT);
7777
}
7878

7979
auto directory = get_current_git_path();
@@ -87,7 +87,7 @@ void config_subcommand::run_unset()
8787
{
8888
if (m_name.empty())
8989
{
90-
throw git_exception("error: wrong number of arguments, should be 1", 129);
90+
throw git_exception("error: wrong number of arguments, should be 1", git2cpp_error_code::BAD_ARGUMENT);
9191
}
9292

9393
auto directory = get_current_git_path();

0 commit comments

Comments
 (0)