Add stack trace to exception logs in flutter_platform (#16715)

This commit is contained in:
Todd Volkert 2018-04-18 12:09:16 -07:00 committed by GitHub
parent e6b62a3a30
commit ec7b46e30b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -506,7 +506,7 @@ class _FlutterPlatform extends PlatformPlugin {
if (!controllerSinkClosed) {
controller.sink.addError(error, stack);
} else {
printError('unhandled error during test:\n$testPath\n$error');
printError('unhandled error during test:\n$testPath\n$error\n$stack');
outOfBandError ??= error;
}
} finally {
@ -520,7 +520,7 @@ class _FlutterPlatform extends PlatformPlugin {
if (!controllerSinkClosed) {
controller.sink.addError(error, stack);
} else {
printError('unhandled error during finalization of test:\n$testPath\n$error');
printError('unhandled error during finalization of test:\n$testPath\n$error\n$stack');
outOfBandError ??= error;
}
}