File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ def default_owner(labels_context: LabelsContext) -> str:
63
63
if labels_context .repository is None :
64
64
repository = utils .load_repository_info ()
65
65
if repository is None :
66
- raise click .BadParameter ("Unable to load repository information." )
66
+ raise click .BadParameter (
67
+ "Unable to read respository owner from git remote URL."
68
+ )
67
69
labels_context .repository = repository
68
70
return labels_context .repository .owner
69
71
@@ -74,7 +76,9 @@ def default_repo(labels_context: LabelsContext) -> str:
74
76
if labels_context .repository is None :
75
77
repository = utils .load_repository_info ()
76
78
if repository is None :
77
- raise click .BadParameter ("Unable to load repository information." )
79
+ raise click .BadParameter (
80
+ "Unable to read repository name from git remote URL."
81
+ )
78
82
labels_context .repository = repository
79
83
return labels_context .repository .name
80
84
You can’t perform that action at this time.
0 commit comments