commit | 42d742e4dade087a04722a86ca7f464fa8af2284 | [log] [tgz] |
---|---|---|
author | Ben Konyi <bkonyi@google.com> | Mon Feb 22 14:18:44 2021 -0800 |
committer | Ben Konyi <bkonyi@google.com> | Mon Feb 22 14:18:44 2021 -0800 |
tree | 49713ab284aad3ff729f1bbe64040cfec50c3bb2 | |
parent | 978400469417174f7ad38c8b6c30e39e91165412 [diff] |
Return exitCode from FormatCommand.run() Related to https://github.com/dart-lang/sdk/issues/44582
diff --git a/lib/src/cli/format_command.dart b/lib/src/cli/format_command.dart index 4432f7b..5b14a7e 100644 --- a/lib/src/cli/format_command.dart +++ b/lib/src/cli/format_command.dart
@@ -156,6 +156,8 @@ options.summary.show(); } - return 0; + // Return the exitCode explicitly for tools which embed dart_style + // and set their own exitCode. + return exitCode; } }