Skip to content

Commit

Permalink
BUG: Error message incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
khalford committed Oct 2, 2024
1 parent f01d472 commit 3cf897d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def run(self, path1: Path, path2: Path) -> bool:
comparison = self.compare(main_ver, branch_ver)
if comparison == VersionNotUpdated:
raise VersionNotUpdated(
f"The version in {'/'.join(str(path1).split('/')[3:])} has not been updated correctly."
f"The version in {('/'.join(str(path2).split('/')[4:]))[0:]} has not been updated correctly."
)
return True

Expand Down Expand Up @@ -79,8 +79,8 @@ def run(self, app: Path, compose: Path) -> bool:
comparison = self.compare(app_ver, compose_ver)
if comparison == VersionNotUpdated:
raise VersionNotUpdated(
f"The version in {'/'.join(str(compose).split('/')[3:])}"
f"does not match {'/'.join(str(app).split('/')[3:])}."
f"The version in {('/'.join(str(compose).split('/')[4:]))[0:]}"
f"does not match {('/'.join(str(app).split('/')[4:]))[0:]}."
)
return True

Expand Down

0 comments on commit 3cf897d

Please sign in to comment.