Unverified Commit a3c750a2 authored by Shi-Hao Hong's avatar Shi-Hao Hong Committed by GitHub

Improve trailing whitespace message (#42243)

parent d992d6de
......@@ -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.
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment