Skip to content

Commit

Permalink
fix: added critical message when agent is no registered
Browse files Browse the repository at this point in the history
  • Loading branch information
ncvicchi committed Dec 9, 2024
1 parent d775911 commit d0b6505
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/agent/src/agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Agent::Agent(const std::string& configFilePath, std::unique_ptr<ISignalHandler>
// Check if agent is registered
if (m_agentInfo.GetName().empty() || m_agentInfo.GetKey().empty() || m_agentInfo.GetUUID().empty())
{
LogCritical("The agent is not registered");
throw std::runtime_error("The agent is not registered");
}

Expand Down

0 comments on commit d0b6505

Please sign in to comment.