Files
sdk/runtime/bin
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
..
2016-11-04 12:30:56 -07:00
2018-01-18 16:38:54 +00:00
2018-05-03 17:59:44 +00:00
2017-03-15 13:11:05 -07:00
2016-11-04 12:30:56 -07:00
2016-11-04 12:30:56 -07:00
2018-09-26 22:49:27 +00:00
2018-09-26 22:49:27 +00:00
2017-03-20 08:47:39 -07:00
2018-07-09 21:45:07 +00:00
2017-08-24 11:17:52 -07:00
2017-08-24 11:17:52 -07:00
2017-03-15 13:11:05 -07:00
2017-03-15 13:11:05 -07:00
2017-03-15 13:11:05 -07:00
2016-10-26 00:26:03 -07:00
2017-10-09 19:31:40 +00:00
2018-09-17 22:27:43 +00:00
2018-09-12 20:02:10 +00:00
2018-10-17 05:31:55 +00:00