diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-28 08:28:58 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-28 08:28:58 -0500 |
commit | 169972546b699f01813131d5356d0edcfc739343 (patch) | |
tree | 62a356a51e950dfced5a4db3e8a666ef369c4c0f /coverage/sqldata.py | |
parent | 3f3856702d7e88065dd0e13f022a4d7c69eeaf6b (diff) | |
download | python-coveragepy-git-169972546b699f01813131d5356d0edcfc739343.tar.gz |
fix: improve an error message. #803
Fixes #803.
Diffstat (limited to 'coverage/sqldata.py')
-rw-r--r-- | coverage/sqldata.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/sqldata.py b/coverage/sqldata.py index b28b83b4..a150fdfd 100644 --- a/coverage/sqldata.py +++ b/coverage/sqldata.py @@ -486,9 +486,9 @@ class CoverageData(SimpleReprMixin): assert lines or arcs assert not (lines and arcs) if lines and self._has_arcs: - raise CoverageException("Can't add lines to existing arc data") + raise CoverageException("Can't add line measurements to existing branch data") if arcs and self._has_lines: - raise CoverageException("Can't add arcs to existing line data") + raise CoverageException("Can't add branch measurements to existing line data") if not self._has_arcs and not self._has_lines: self._has_lines = lines self._has_arcs = arcs |