Files
sdk/runtime/vm
Alexander Aprelev a53172cd47 [vm] Print isolate sticky_error during shutdown to let user know of unhandled exceptions.
Given
```
import 'dart:isolate';
import 'dart:async';

void func(_) {
  throw new Exception('bad news');
}

void main() {
  ReceivePort receivePort;
  receivePort = new ReceivePort()..listen((_) { receivePort.close(); throw "more bad news"; } );
  Isolate.spawn(func, [], onExit: receivePort.sendPort);
}
```

Before this change only 'more bad news' will be printed on the stderr, after this change both 'bad news' and 'more bad news' will be printed out.

Before:
```
$ out/ReleaseX64/dart $DH/exc.dart

Unhandled exception:
more bad news

```

After:
```
$ out/ReleaseX64/dart $DH/exc.dart

Isolate is shutting down with the error: Unhandled exception:

Exception: bad news
Unhandled exception:
more bad news
```

Bug: https://github.com/dart-lang/sdk/issues/26626
Change-Id: Ief15f254837d9a02b93a6da655051fccf7c3dd2e
Reviewed-on: https://dart-review.googlesource.com/c/52680
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2018-10-17 17:12:47 +00:00
..
2018-10-10 23:19:24 +00:00
2018-09-21 21:30:33 +00:00
2018-09-21 21:30:33 +00:00
2018-09-17 22:27:43 +00:00
2018-09-11 21:14:25 +00:00
2018-08-20 22:47:31 +00:00
2018-08-20 22:47:31 +00:00
2017-10-30 22:02:20 +00:00
2018-10-11 16:50:42 +00:00
2018-09-21 21:30:33 +00:00
2017-11-23 00:07:56 +00:00
2017-11-23 00:07:56 +00:00
2018-05-03 17:59:44 +00:00
2017-06-22 08:49:22 -07:00
2018-09-21 21:30:33 +00:00
2018-10-11 16:50:42 +00:00