Skip to content

Commit

Permalink
Consolidate ascii spinner stop in devtools activation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagman committed Feb 9, 2021
1 parent dd67318 commit fb0b767
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/flutter_tools/lib/src/devtools_launcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,17 @@ class DevtoolsServerLauncher extends DevtoolsLauncher {
'devtools'
]);
if (_devToolsActivateProcess.exitCode != 0) {
status.cancel();
_logger.printError('Error running `pub global activate '
'devtools`:\n${_devToolsActivateProcess.stderr}');
return false;
}
status.stop();
_persistentToolState.lastDevToolsActivationTime = DateTime.now();
return true;
} on Exception catch (e, _) {
status.stop();
_logger.printError('Error running `pub global activate devtools`: $e');
return false;
} finally {
status.stop();
}
}

Expand Down

0 comments on commit fb0b767

Please sign in to comment.