Skip to content

Commit

Permalink
theses: add cms_id to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim committed Jul 18, 2024
1 parent 5d25ffd commit b6629a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invenio_workflows_tugraz/theses/theses.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def import_from_cms_func(
thesis = cms_service.get_metadata(identity, cms_id)
file_path = cms_service.download_file(identity, cms_id)
except CampusOnlineRESTError as error:
raise RuntimeError(str(error)) from error
msg = f"ERROR: CampusOnlineRESTError cms_id: {cms_id}, msg: {error}"
raise RuntimeError(msg) from error

marc21_record = Marc21Metadata()
converter = CampusOnlineToMarc21(marc21_record)
Expand Down

0 comments on commit b6629a0

Please sign in to comment.