File tree 3 files changed +8
-9
lines changed
runtime/observatory/lib/src
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -2118,7 +2118,7 @@ class DebuggerPageElement extends CustomElement implements Renderable {
2118
2118
app.vm.listenEventStream (S .VM .kStdoutStream, _debugger.onStdout);
2119
2119
if (_stdoutSubscriptionFuture != null ) {
2120
2120
// TODO(turnidge): How do we want to handle this in general?
2121
- _stdoutSubscriptionFuture! .catchError ( (e, st) {
2121
+ _stdoutSubscriptionFuture! .then ((_) {}, onError : (e, st) {
2122
2122
Logger .root.info ('Failed to subscribe to stdout: $e \n $st \n ' );
2123
2123
_stdoutSubscriptionFuture = null ;
2124
2124
});
@@ -2127,7 +2127,7 @@ class DebuggerPageElement extends CustomElement implements Renderable {
2127
2127
app.vm.listenEventStream (S .VM .kStderrStream, _debugger.onStderr);
2128
2128
if (_stderrSubscriptionFuture != null ) {
2129
2129
// TODO(turnidge): How do we want to handle this in general?
2130
- _stderrSubscriptionFuture! .catchError ( (e, st) {
2130
+ _stderrSubscriptionFuture! .then ((_) {}, onError : (e, st) {
2131
2131
Logger .root.info ('Failed to subscribe to stderr: $e \n $st \n ' );
2132
2132
_stderrSubscriptionFuture = null ;
2133
2133
});
Original file line number Diff line number Diff line change @@ -809,9 +809,8 @@ class ScriptInsetElement extends CustomElement implements Renderable {
809
809
busy = true ;
810
810
if (line.breakpoints == null ) {
811
811
// No breakpoint. Add it.
812
- line.script.isolate!
813
- .addBreakpoint (line.script, line.line)
814
- .catchError ((e, st) {
812
+ line.script.isolate! .addBreakpoint (line.script, line.line).then ((_) {},
813
+ onError: (e, st) {
815
814
if (e is ! S .ServerRpcException ||
816
815
(e as S .ServerRpcException ).code !=
817
816
S .ServerRpcException .kCannotAddBreakpoint) {
Original file line number Diff line number Diff line change @@ -805,7 +805,7 @@ abstract class VM extends ServiceObjectOwner implements M.VM {
805
805
_buildIsolateList ();
806
806
807
807
// Eagerly load the isolate.
808
- isolate.load ().catchError ( (e, stack) {
808
+ isolate.load ().then ((_) {}, onError : (e, stack) {
809
809
Logger .root.info ('Eagerly loading an isolate failed: $e \n $stack ' );
810
810
});
811
811
} else {
@@ -823,7 +823,7 @@ abstract class VM extends ServiceObjectOwner implements M.VM {
823
823
_buildIsolateGroupList ();
824
824
825
825
// Eagerly load the isolate.
826
- isolateGroup.load ().catchError ( (e, stack) {
826
+ isolateGroup.load ().then ((_) {}, onError : (e, stack) {
827
827
Logger .root
828
828
.info ('Eagerly loading an isolate group failed: $e \n $stack ' );
829
829
});
@@ -1062,9 +1062,9 @@ abstract class VM extends ServiceObjectOwner implements M.VM {
1062
1062
1063
1063
// Reload all isolates.
1064
1064
Future reloadIsolates () {
1065
- var reloads = < Future > [];
1065
+ var reloads = < Future < void > > [];
1066
1066
for (var isolate in isolates) {
1067
- var reload = isolate.reload ().catchError ( (e) {
1067
+ var reload = isolate.reload ().then ((_) {}, onError : (e) {
1068
1068
Logger .root.info ('Bulk reloading of isolates failed: $e ' );
1069
1069
});
1070
1070
reloads.add (reload);
You can’t perform that action at this time.
0 commit comments