From 4828b2c3778a647f26678c2395451d18a808f8aa Mon Sep 17 00:00:00 2001 From: Dan Rubel Date: Tue, 22 Nov 2016 09:36:50 -0500 Subject: [PATCH] fix flutter tools daemon exit code check (#6981) --- packages/flutter_tools/lib/src/commands/daemon.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/lib/src/commands/daemon.dart b/packages/flutter_tools/lib/src/commands/daemon.dart index e9dc937e3c..820507ba89 100644 --- a/packages/flutter_tools/lib/src/commands/daemon.dart +++ b/packages/flutter_tools/lib/src/commands/daemon.dart @@ -58,8 +58,8 @@ class DaemonCommand extends FlutterCommand { daemonCommand: this, notifyingLogger: notifyingLogger); int code = await daemon.onExit; - if (code != null) - throwToolExit(null, exitCode: code); + if (code != 0) + throwToolExit('Daemon exited with non-zero exit code: $code', exitCode: code); }, onError: _handleError); }