mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Log received messages for exceptions as well as timeouts (#23287)
This commit is contained in:
parent
64bf567b0e
commit
9dfc0f3aaa
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue