*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit caccbbd8 authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Print errors from response on metadata upload

parent 6c531435
Branches
No related tags found
1 merge request!1Updates
......@@ -156,6 +156,17 @@ for record in records:
data=content,
headers=auth_json_header,
)
# errors in the metadata are reported via the "errors" field in the response
if data and "errors" in data:
print(
"errors from response at step '{}' while processing '{}':".format(
step, record
),
file=sys.stderr,
)
print(data["errors"], file=sys.stderr)
recid = data["id"]
# if there are any files to be uploaded, invenio needs to know about them
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment