Skip to content

Commit

Permalink
fix: Actually show the error when the model isn't a git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuestengecko committed Sep 24, 2024
1 parent 89e3d74 commit aad523e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capella_diff_tools/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _ensure_git(model: dict[str, t.Any]) -> None:
path = path.parent
model["path"] = "git+" + path.as_uri()
elif proto != "git":
raise click.Abort("The 'model' must point to a git repository")
raise click.UsageError("The 'model' must point to a git repository")

assert isinstance(model["path"], str)

Expand Down

0 comments on commit aad523e

Please sign in to comment.