Skip to content
Snippets Groups Projects
Commit 920bf322 authored by Tomas Stupka's avatar Tomas Stupka
Browse files

avoid jline.console.UserInterruptException

parent 19860151
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,8 @@ public class JLineConsoleHandler extends ConsoleHandler { ...@@ -67,7 +67,8 @@ public class JLineConsoleHandler extends ConsoleHandler {
console.getTerminal().init(); console.getTerminal().init();
return console.readLine(); return console.readLine();
} catch (UserInterruptException e) { } catch (UserInterruptException e) {
throw e; // interrupted by ctrl-c
return "";
} catch (Exception ex) { } catch (Exception ex) {
throw new RuntimeException(ex); throw new RuntimeException(ex);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment