Skip to contentSkip to conversation

SCRIPTS: Better error message for checkpath.pl

PATCH In review Richard Hartmann 1 participant 1 message Feb 10, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 SCRIPTS: Better error message for checkpath.pl

If the input file for checkpatch.pl is not a patch, print an error message that suggets -f.

---
 scripts/checkpatch.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/checkpatch.pl +1 -1
index 3257d3d..d5405aa 100755
@@ -2693,7 +2693,7 @@ sub process {
 	}
 
 	if (!$is_patch) {
-		ERROR("Does not appear to be a unified-diff format patch\n");
+		ERROR("Does not appear to be a unified-diff format patch. Add -f?\n");
 	}
 	if ($is_patch && $chk_signoff && $signoff == 0) {
 		ERROR("Missing Signed-off-by: line(s)\n");
Signature · 1 line
1.6.6.1