Skip to content

Commit

Permalink
Switch from yellow to red for CLI error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Apr 21, 2018
1 parent 7dc709f commit 2e27d7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webdev/bin/webdev.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ Future main(List<String> args) async {
try {
exitCode = await run(args);
} on UsageException catch (e) {
print(yellow.wrap(e.message));
print(red.wrap(e.message));
print(' ');
print(e.usage);
exitCode = ExitCode.usage.code;
} on FileSystemException catch (e) {
print(yellow.wrap('$_boldApp could not run in the current directory.'));
print(red.wrap('$_boldApp could not run in the current directory.'));
print(e.message);
if (e.path != null) {
print(' ${e.path}');
}
exitCode = ExitCode.config.code;
} on PackageException catch (e) {
print(yellow.wrap('$_boldApp could not run for this project.'));
print(red.wrap('$_boldApp could not run for this project.'));
for (var detail in e.details) {
print(yellow.wrap(detail.error));
if (detail.description != null) {
Expand Down

0 comments on commit 2e27d7d

Please sign in to comment.