Reset the terminal if an exception occurs while handling terminal input in the app runner (#11516)

This commit is contained in:
Jason Simmons
2017-08-04 14:27:36 -07:00
committed by GitHub
parent ec9df2f269
commit a5c4680e72

View File

@@ -646,6 +646,9 @@ abstract class ResidentRunner {
final bool handled = await _commonTerminalInputHandler(command);
if (!handled)
await handleTerminalCommand(command);
} catch (error, st) {
printError('$error\n$st');
_cleanUpAndExit(null);
} finally {
_processingUserRequest = false;
}