Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ private CharSequence readCommand(AtomicBoolean reading) throws UserInterruptExce
command = "";
} catch (Throwable t) {
ShellUtil.logException(this, t);
command = "";
} finally {
reading.set(false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,9 @@ public static void logException(Session session, Throwable t) {
session.getConsole().println(str);
}
session.getConsole().flush();
} catch (Exception ignore) {
// ignore
} catch (Throwable ignore) {
// ignore (catch Throwable to handle LinkageError from JLine classloader
// changes during bundle refresh, which would otherwise kill the console thread)
}
}

Expand Down
Loading