This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/buildstream.git


The following commit(s) were added to refs/heads/master by this push:
     new 8bd93ebcf Raise exception with more information upon plugin bug
     new afe7e21e5 Merge pull request #1864 from nanonyme/nanonyme/errors
8bd93ebcf is described below

commit 8bd93ebcf818dd95067ee6edf650d674df10e50c
Author: Seppo Yli-Olli <[email protected]>
AuthorDate: Thu Sep 14 19:18:46 2023 +0300

    Raise exception with more information upon plugin bug
---
 src/buildstream/source.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/buildstream/source.py b/src/buildstream/source.py
index 60808a5d5..0278c5a32 100644
--- a/src/buildstream/source.py
+++ b/src/buildstream/source.py
@@ -760,7 +760,9 @@ class Source(Plugin):
 
                 assert (
                     self.__expected_alias is None or self.__expected_alias == 
expected_alias
-                ), "Primary URL marked twice with different URLs"
+                ), "Attempt to mark primary URL with {}, already marked with 
{}".format(
+                    expected_alias, self.__expected_alias
+                )
 
                 self.__expected_alias = expected_alias
 

Reply via email to