Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/subcommand/config_subcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down