summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-11-14 10:41:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-11-14 13:29:05 +0100
commit281d493fd901c828ba7b41cccf4f624b0633943a (patch)
treefeba3d0ebf821dcdb130da0bb2f5f096d86ebf72 /compilerplugins
parentbce68bef088f1adb59ff199b2fc44f676d64e749 (diff)
Improve error message
(When temporarily taking a plugin out of the shared plugin by modifying its leading > #ifndef LO_CLANG_SHARED_PLUGINS line I often forget about a trailing > #endif // LO_CLANG_SHARED_PLUGINS line, which then caused a hard to understand > [GEN] compilerplugins/clang/sharedvisitor/sharedvisitor.cxx > Incorrect version '' failure. This way, at least somehow mention the name of the problematic plugin to give a bit of a clue.) Change-Id: I9a9178ba0d7a32f448e91076376989f088ea70f8 Reviewed-on: https://gerrit.libreoffice.org/82657 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/sharedvisitor/generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/sharedvisitor/generator.cxx b/compilerplugins/clang/sharedvisitor/generator.cxx
index bf8cfb601264..38e6527a7bb3 100644
--- a/compilerplugins/clang/sharedvisitor/generator.cxx
+++ b/compilerplugins/clang/sharedvisitor/generator.cxx
@@ -335,7 +335,7 @@ static bool readFile( const string& fileName )
string version = getValue( line, "InfoVersion" );
if( version != "1" )
{
- cerr << "Incorrect version '" << version << "'" << endl;
+ cerr << "Incorrect version '" << version << "' in " << fileName << endl;
return false;
}
getline( file, line );