mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Change warning text if cannot connect to jupyter
This commit is contained in:
@@ -308,8 +308,9 @@ public final class IpnbConnectionManager implements ProjectComponent {
|
||||
if (message.startsWith(IpnbConnection.UNABLE_LOGIN_MESSAGE)) {
|
||||
showWarning(codePanel.getFileEditor(), "Cannot connect to Jupyter Notebook: login failed", new IpnbSettingsAdapter());
|
||||
}
|
||||
else if(message.startsWith(CONNECTION_REFUSED)) {
|
||||
showWarning(codePanel.getFileEditor(), "Cannot connect to Jupyter Notebook: connection refused", new IpnbSettingsAdapter());
|
||||
else if (message.startsWith(CONNECTION_REFUSED) || message.startsWith(IpnbConnection.CANNOT_START_JUPYTER)) {
|
||||
showWarning(codePanel.getFileEditor(), "Cannot connect to Jupyter Notebook: cannot connect to Jupyter server",
|
||||
new IpnbSettingsAdapter());
|
||||
}
|
||||
|
||||
LOG.warn("Jupyter Notebook connection refused: " + message);
|
||||
|
||||
Reference in New Issue
Block a user