aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/pkg-build.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx
index 66e158c..9d9b384 100644
--- a/bpkg/pkg-build.cxx
+++ b/bpkg/pkg-build.cxx
@@ -2600,6 +2600,9 @@ namespace bpkg
{
string l (a, p);
+ if (l.empty ())
+ fail << "empty repository location in '" << a << "'";
+
// Search for the repository location in the database before trying
// to parse it. Note that the straight parsing could otherwise fail,
// being unable to properly guess the repository type.