Skip to content

Commit

Permalink
Fix log message when gitlab project ID not found (#321)
Browse files Browse the repository at this point in the history
* Fix f string

* Tweak error message to be more helpful
  • Loading branch information
bsquizz authored Aug 24, 2023
1 parent 8a72995 commit b42bf37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion bonfire/bonfire.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@ def _validate_opposing_opts(ctx, param, value):
type=str,
default="",
),

_local_option,
]

Expand Down
2 changes: 1 addition & 1 deletion bonfire/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def process_iqe_cji(
parallel_enabled="",
parallel_worker_count="",
rp_args="",
ibutsu_source=""
ibutsu_source="",
):
log.info("processing IQE ClowdJobInvocation")

Expand Down
5 changes: 4 additions & 1 deletion bonfire/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ def _get_gl_commit_hash(self):
project_id = p["id"]

if not project_id:
raise FatalError("gitlab project ID not found for {self.org}/{self.repo}")
raise FatalError(
f"gitlab project ID not found for {self.org}/{self.repo}."
" If you are sure it is correct, check the repository's read permissions."
)

def get_ref_func(ref):
return self._session.get(
Expand Down

0 comments on commit b42bf37

Please sign in to comment.