Skip to content
Merged
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
9 changes: 3 additions & 6 deletions src/cab/out/pinone/PinOne.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,22 +159,19 @@ void PinOne::ConnectToController()
if (m_pinOneCommunication->CreateServer())
{
if (!m_pinOneCommunication->ConnectToServer())
{
Log::Warning(StringExtensions::Build("Unable to connect to PinOne on comport {0}", m_comPort));
return;
}
throw std::runtime_error(StringExtensions::Build("Unable to connect to PinOne on comport {0} after server creation", m_comPort));
}
else
{
Log::Warning(StringExtensions::Build("Unable to create PinOne server for comport {0}", m_comPort));
return;
throw std::runtime_error(StringExtensions::Build("Unable to create PinOne server for comport {0}", m_comPort));
}
}
}
catch (const std::exception& e)
{
std::string msg = StringExtensions::Build("A exception occurred while opening comport {0} for {1}.", m_comPort, GetName());
Log::Warning(msg);
throw;
}
}

Expand Down
Loading