Skip to content

Commit

Permalink
fixup: rewrite error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-psb committed Nov 28, 2024
1 parent 60e179a commit c66bc70
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pulpcore/content/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,13 +1149,15 @@ async def finalize():
await downloader.session.close()
close_tcp_connection(request.transport._sock)
raise RuntimeError(
f"DigestValidationError: Pulp tried streaming {remote_artifact.url!r} to "
"the client, but it failed checkusm validation.\n\n"
"We cant recover from wrong data already sent so we are:\n"
f"Pulp tried streaming {remote_artifact.url!r} to "
"the client, but it failed checksum validation.\n\n"
"We can't recover from wrong data already sent so we are:\n"
"- Forcing the connection to close.\n"
"- Marking this Remote Server to be ignored for the next 5 minutes.\n\n"
"If the Remote is permanently corrupted, we advice the admin to "
"manually prune affected RemoteArtifacts/Remotes from Pulp."
"- Marking this Remote Server to be ignored for 5 minutes.\n\n"
"If the Remote is known to be fixed, try resyncing the associated repository.\n"
"If the Remote is known to be permanently corrupted, try removing "
"affected Pulp Remote, adding a good one and resyncing.\n"
"If the problem persists, please contact the Pulp team."
)

if content_length := response.headers.get("Content-Length"):
Expand Down

0 comments on commit c66bc70

Please sign in to comment.