Skip to content

Commit 9210af5

Browse files
committed
Added more hint information when patch actions in ietf/checks.py fails.
- Legacy-Id: 15438
1 parent 9e71882 commit 9210af5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ietf/checks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,9 @@ def maybe_patch_library(app_configs, **kwargs):
370370
if not patch_set.apply(root=library_path):
371371
errors.append(checks.Warning(
372372
"Could not apply patch from file '%s'"%patch_file,
373-
hint="Make sure that the patch file contains a unified diff and has valid file paths",
373+
hint=("Make sure that the patch file contains a unified diff and has valid file paths\n\n"
374+
"\tPatch root: %s\n"
375+
"\tTarget files: %s\n") % (library_path, ', '.join(i.target for i in patch_set.items)),
374376
id="datatracker.W0002",
375377
))
376378
else:

0 commit comments

Comments
 (0)