mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Add stack trace to exception logs in flutter_platform (#16715)
This commit is contained in:
parent
e6b62a3a30
commit
ec7b46e30b
@ -506,7 +506,7 @@ class _FlutterPlatform extends PlatformPlugin {
|
|||||||
if (!controllerSinkClosed) {
|
if (!controllerSinkClosed) {
|
||||||
controller.sink.addError(error, stack);
|
controller.sink.addError(error, stack);
|
||||||
} else {
|
} else {
|
||||||
printError('unhandled error during test:\n$testPath\n$error');
|
printError('unhandled error during test:\n$testPath\n$error\n$stack');
|
||||||
outOfBandError ??= error;
|
outOfBandError ??= error;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
@ -520,7 +520,7 @@ class _FlutterPlatform extends PlatformPlugin {
|
|||||||
if (!controllerSinkClosed) {
|
if (!controllerSinkClosed) {
|
||||||
controller.sink.addError(error, stack);
|
controller.sink.addError(error, stack);
|
||||||
} else {
|
} 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;
|
outOfBandError ??= error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user