From 330c08199e6dfb4bdfb79cf20679ea62b1db2949 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Wed, 6 Jan 2016 17:17:16 -0800 Subject: [PATCH] Revert "Make `flutter listen` exit nicely when missing dependencies" --- packages/flutter_tools/lib/src/commands/listen.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter_tools/lib/src/commands/listen.dart b/packages/flutter_tools/lib/src/commands/listen.dart index c789b85959..f636b3f3b0 100644 --- a/packages/flutter_tools/lib/src/commands/listen.dart +++ b/packages/flutter_tools/lib/src/commands/listen.dart @@ -45,20 +45,20 @@ class ListenCommand extends StartCommandBase { try { runCheckedSync(['which', 'fswatch']); } catch (e) { - logging.severe('"listen" command requires ' + logging.severe('"listen" command is only useful if you have installed ' 'fswatch on Mac. Run "brew install fswatch" to install it with ' 'homebrew.'); - exit(1); + return null; } return ['fswatch', '-r', '-v', '-1']..addAll(directories); } else if (Platform.isLinux) { try { runCheckedSync(['which', 'inotifywait']); } catch (e) { - logging.severe('"listen" requires ' + logging.severe('"listen" command is only useful if you have installed ' 'inotifywait on Linux. Run "apt-get install inotify-tools" or ' 'equivalent to install it.'); - exit(1); + return null; } return [ 'inotifywait',