| Index: runtime/bin/vmservice/client/lib/src/app/application.dart
|
| diff --git a/runtime/bin/vmservice/client/lib/src/app/application.dart b/runtime/bin/vmservice/client/lib/src/app/application.dart
|
| index 9b593cbf8af30d1d882f86a3926f072bad4d78a8..3ebdc7b4c57f1a42529b85fc0092fe88e5a93e8d 100644
|
| --- a/runtime/bin/vmservice/client/lib/src/app/application.dart
|
| +++ b/runtime/bin/vmservice/client/lib/src/app/application.dart
|
| @@ -26,6 +26,20 @@ class ObservatoryApplication extends Observable {
|
| assert(locationManager._app == null);
|
| locationManager._app = this;
|
| locationManager.init();
|
| + vm.errors.stream.listen(_onError);
|
| + vm.exceptions.stream.listen(_onException);
|
| + }
|
| +
|
| + void _onError(ServiceError error) {
|
| + response = error;
|
| + // No id, clear the hash.
|
| + locationManager.clearCurrentHash();
|
| + }
|
| +
|
| + void _onException(ServiceException exception) {
|
| + response = exception;
|
| + // No id, clear the hash.
|
| + locationManager.clearCurrentHash();
|
| }
|
|
|
| ObservatoryApplication.devtools() :
|
|
|