diff --git a/build/lint-locale/lint-locale.go b/build/lint-locale/lint-locale.go index dc4088c73c..03ddab616e 100644 --- a/build/lint-locale/lint-locale.go +++ b/build/lint-locale/lint-locale.go @@ -191,5 +191,24 @@ func main() { } } + if exitCode != 0 { + fmt.Println(dmp.DiffPrettyText([]diffmatchpatch.Diff{{ + Type: diffmatchpatch.DiffEqual, + Text: "Please adjust the locale files as suggested above (", + }, { + Type: diffmatchpatch.DiffDelete, + Text: "red", + }, { + Type: diffmatchpatch.DiffEqual, + Text: ": removal, ", + }, { + Type: diffmatchpatch.DiffInsert, + Text: "green", + }, { + Type: diffmatchpatch.DiffEqual, + Text: ": insertion)", + }})) + } + os.Exit(exitCode) }