Added more hint information when patch actions in ietf/checks.py fails.
- Legacy-Id: 15438
This commit is contained in:
parent
9e71882e81
commit
9210af58fa
|
@ -370,7 +370,9 @@ def maybe_patch_library(app_configs, **kwargs):
|
||||||
if not patch_set.apply(root=library_path):
|
if not patch_set.apply(root=library_path):
|
||||||
errors.append(checks.Warning(
|
errors.append(checks.Warning(
|
||||||
"Could not apply patch from file '%s'"%patch_file,
|
"Could not apply patch from file '%s'"%patch_file,
|
||||||
hint="Make sure that the patch file contains a unified diff and has valid file paths",
|
hint=("Make sure that the patch file contains a unified diff and has valid file paths\n\n"
|
||||||
|
"\tPatch root: %s\n"
|
||||||
|
"\tTarget files: %s\n") % (library_path, ', '.join(i.target for i in patch_set.items)),
|
||||||
id="datatracker.W0002",
|
id="datatracker.W0002",
|
||||||
))
|
))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue