From 373bc208ff8f7eceecd944114cd729b5a348d918 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 3 Nov 2020 19:40:42 +0000 Subject: Move FilePosition to fileutils.h and use in ConfigTag. --- src/modules/m_hostchange.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_hostchange.cpp') diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp index ea719c78a..6a52fbaa2 100644 --- a/src/modules/m_hostchange.cpp +++ b/src/modules/m_hostchange.cpp @@ -138,7 +138,7 @@ private: // Ensure that we have the parameter. const std::string mask = tag->getString("mask"); if (mask.empty()) - throw ModuleException(" is a mandatory field, at " + tag->getTagLocation()); + throw ModuleException(" is a mandatory field, at " + tag->source.str()); insp::flat_set ports; const std::string portlist = tag->getString("ports"); @@ -166,7 +166,7 @@ private: // Ensure that we have the parameter. const std::string value = tag->getString("value"); if (value.empty()) - throw ModuleException(" is a mandatory field when using the 'set' action, at " + tag->getTagLocation()); + throw ModuleException(" is a mandatory field when using the 'set' action, at " + tag->source.str()); // The hostname is in the format . rules.push_back(HostRule(mask, value, ports)); @@ -174,7 +174,7 @@ private: } else { - throw ModuleException(action + " is an invalid type, at " + tag->getTagLocation()); + throw ModuleException(action + " is an invalid type, at " + tag->source.str()); } } -- cgit v1.3.1-10-gc9f91