Improve trailing whitespace message (#42243)

This commit is contained in:
Shi-Hao Hong
2019-10-09 16:29:07 -07:00
committed by GitHub
parent d992d6de20
commit a3c750a272

View File

@@ -198,7 +198,7 @@ Future<void> _checkForTrailingSpaces() async {
...changedFiles,
],
workingDirectory: flutterRoot,
failureMessage: '${red}Whitespace detected at the end of source code lines.$reset\nPlease remove:',
failureMessage: '${red}Detected trailing whitespace in the file[s] listed above.$reset\nPlease remove them from the offending line[s].',
expectNonZeroExit: true, // Just means a non-zero exit code is expected.
expectedExitCode: 1, // Indicates that zero lines were found.
);