Unverified Commit ec26a7ba authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Fail with better error message in microbenchmarks (#16676)

parent e9177ba3
......@@ -127,7 +127,12 @@ Future<Map<String, double>> _readJsonResults(Process process) {
jsonStarted = false;
processWasKilledIntentionally = true;
process.kill(ProcessSignal.SIGINT); // flutter run doesn't quit automatically
completer.complete(json.decode(jsonBuf.toString()));
final String jsonOutput = jsonBuf.toString();
try {
completer.complete(json.decode(jsonOutput));
} catch (ex) {
completer.completeError('Decoding JSON failed ($ex). JSON string was: $jsonOutput');
}
return;
}
......
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