aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-create.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/rep-create.cxx')
-rw-r--r--bpkg/rep-create.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx
index 291374e..1f0e420 100644
--- a/bpkg/rep-create.cxx
+++ b/bpkg/rep-create.cxx
@@ -131,7 +131,7 @@ namespace bpkg
throw failed ();
}
- void
+ int
rep_create (const rep_create_options& o, cli::scanner& args)
try
{
@@ -195,9 +195,12 @@ namespace bpkg
d.normalize ();
text << pm.size () << " package(s) in " << d;
}
+
+ return 0;
}
catch (const invalid_path& e)
{
- fail << "invalid path: '" << e.path () << "'";
+ error << "invalid path: '" << e.path () << "'";
+ throw failed ();
}
}