Commit 4828b2c3 authored by Dan Rubel's avatar Dan Rubel Committed by GitHub

fix flutter tools daemon exit code check (#6981)

parent e0a9c0a9
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment