Skip to content

Commit

Permalink
Add error connection description to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
equalsraf authored and equalsraf committed Dec 18, 2022
1 parent f880ea1 commit 2b4cb87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ void MainWindow::neovimError(NeovimConnector::NeovimError err)
{
switch(err) {
case NeovimConnector::FailedToStart:
m_errorWidget->setText("Unable to start nvim: " + m_nvim->errorString());
m_errorWidget->setText("Unable to start nvim: " + m_nvim->errorString() + "<br>("
+ m_nvim->connectionDescription() + ")");
break;
default:
m_errorWidget->setText(m_nvim->errorString());
m_errorWidget->setText(
m_nvim->errorString() + "<br>(" + m_nvim->connectionDescription() + ")");
}
m_errorWidget->showReconnect(m_nvim->canReconnect());
m_stack.setCurrentIndex(0);
Expand Down

0 comments on commit 2b4cb87

Please sign in to comment.