fix flutter tools daemon exit code check (#6981)

This commit is contained in:
Dan Rubel
2016-11-22 09:36:50 -05:00
committed by GitHub
parent e0a9c0a98a
commit 4828b2c377

View File

@@ -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);
}