Skip to content

Commit c66bc70

Browse files
committed
fixup: rewrite error message
1 parent 60e179a commit c66bc70

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pulpcore/content/handler.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,13 +1149,15 @@ async def finalize():
11491149
await downloader.session.close()
11501150
close_tcp_connection(request.transport._sock)
11511151
raise RuntimeError(
1152-
f"DigestValidationError: Pulp tried streaming {remote_artifact.url!r} to "
1153-
"the client, but it failed checkusm validation.\n\n"
1154-
"We cant recover from wrong data already sent so we are:\n"
1152+
f"Pulp tried streaming {remote_artifact.url!r} to "
1153+
"the client, but it failed checksum validation.\n\n"
1154+
"We can't recover from wrong data already sent so we are:\n"
11551155
"- Forcing the connection to close.\n"
1156-
"- Marking this Remote Server to be ignored for the next 5 minutes.\n\n"
1157-
"If the Remote is permanently corrupted, we advice the admin to "
1158-
"manually prune affected RemoteArtifacts/Remotes from Pulp."
1156+
"- Marking this Remote Server to be ignored for 5 minutes.\n\n"
1157+
"If the Remote is known to be fixed, try resyncing the associated repository.\n"
1158+
"If the Remote is known to be permanently corrupted, try removing "
1159+
"affected Pulp Remote, adding a good one and resyncing.\n"
1160+
"If the problem persists, please contact the Pulp team."
11591161
)
11601162

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

0 commit comments

Comments
 (0)