diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-09-30 11:21:22 +0300 |
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-09-30 11:21:22 +0300 |
| commit | b941de80dbe15a20a0eaea795d1282cf36306c30 (patch) | |
| tree | 4eb6cde9df1611c1dd9cb06cedf6faef66b4d65b /indra/llcommon/llinitparam.cpp | |
| parent | 188b778abcd4d06a9fcfcf0eee0cce8ccf00ed9b (diff) | |
MAINT-6783 Xml parser warnings should show the file name
Diffstat (limited to 'indra/llcommon/llinitparam.cpp')
| -rw-r--r-- | indra/llcommon/llinitparam.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llcommon/llinitparam.cpp b/indra/llcommon/llinitparam.cpp index aa2f4eb289..1d104cf55d 100644 --- a/indra/llcommon/llinitparam.cpp +++ b/indra/llcommon/llinitparam.cpp @@ -193,7 +193,12 @@ namespace LLInitParam { if (!silent) { - p.parserWarning(llformat("Failed to parse parameter \"%s\"", p.getCurrentElementName().c_str())); + std::string file_name = p.getCurrentFileName(); + if(!file_name.empty()) + { + file_name = "in file: " + file_name; + } + p.parserWarning(llformat("Failed to parse parameter \"%s\" %s", p.getCurrentElementName().c_str(), file_name.c_str())); } return false; } |
