aboutsummaryrefslogtreecommitdiff
path: root/src/configparser.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-01 13:16:48 +0000
committerGravatar Sadie Powell2023-01-01 13:19:45 +0000
commitd048778f789e8977506668631dab649426ca01ce (patch)
treeb3f5e3a0d37b070df53fbd233b72f4fd15d2deb6 /src/configparser.cpp
parentRename the SimpleExtItem type parameter to be more descriptive. (diff)
parentFix some minor config parser error messages. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r--src/configparser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index 01503656c..f5a0ceab6 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -6,7 +6,6 @@
* Copyright (C) 2013 ChrisTX <xpipe@hotmail.de>
* Copyright (C) 2012-2014 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012 Robby <robby@chatbelgie.be>
- * Copyright (C) 2010 Craig Edwards <brain@inspircd.org>
* Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
*
* This file is part of InspIRCd. InspIRCd is free software: you can
@@ -322,9 +321,10 @@ struct Parser final
{
stack.errstr << err.GetReason() << " at " << current.str();
if (tag)
- stack.errstr << " (inside tag " << tag->name << " at line " << tag->source.line << ")\n";
- else
- stack.errstr << " (last tag was on line " << last_tag.line << ")\n";
+ stack.errstr << " (inside <" << tag->name << "> tag on line " << tag->source.line << ")";
+ else if (last_tag.line)
+ stack.errstr << " (last tag was on line " << last_tag.line << ")";
+ stack.errstr << '\n';
}
return false;
}