Unverified Commit 80f96ee6 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

surface errors from build runner (#39358)

parent 23637844
......@@ -353,7 +353,25 @@ class BuildDaemonCreator {
'--define', 'flutter_tools:shell=flutterWebSdk=$flutterWebSdk',
],
logHandler: (ServerLog serverLog) {
switch (serverLog.level) {
case Level.SEVERE:
case Level.SHOUT:
// This message is always returned once since we're running the
// build script from source.
if (serverLog.message.contains('Warning: Interpreting this as package URI')) {
return;
}
printError(serverLog.message);
if (serverLog.error != null) {
printError(serverLog.error);
}
if (serverLog.stackTrace != null) {
printTrace(serverLog.stackTrace);
}
break;
default:
printTrace(serverLog.message);
}
},
buildMode: daemon.BuildMode.Manual,
);
......
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