Unverified Commit 9dfc0f3a authored by Danny Tuppeny's avatar Danny Tuppeny Committed by GitHub

Log received messages for exceptions as well as timeouts (#23287)

parent 64bf567b
......@@ -372,7 +372,9 @@ class FlutterTestDriver {
return f().timeout(timeout ?? defaultTimeout, onTimeout: () {
logMessage('<timed out>');
throw '$message\nReceived:\n${messages.toString()}';
throw '$message';
}).catchError((dynamic error) {
throw '$error\nReceived:\n${messages.toString()}';
}).whenComplete(() => sub.cancel());
}
......
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