File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments