diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2021-03-23 07:27:42 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2021-03-23 07:27:42 +0100 |
commit | 00c30046b1f85c814869544b1a79782a06f155bf (patch) | |
tree | 80ea5e73c3057fb2f781947e150b2372b281d9cc | |
parent | 878c3b55c3aef12b5b1d8ad2619644a0e062368e (diff) |
Add debug output to see immediately if grammar fails
Change-Id: I46402402931dad2190ef8aa405dd146a2d0fcf16
-rw-r--r-- | src/lib/CDRParser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/CDRParser.cpp b/src/lib/CDRParser.cpp index d141591..5ddced8 100644 --- a/src/lib/CDRParser.cpp +++ b/src/lib/CDRParser.cpp @@ -165,7 +165,10 @@ static int parseColourString(const char *colourString, libcdr::CDRColor &colour, } if (!bRes) + { + CDR_DEBUG_MSG(("parseColourString --> spirit grammar failed with string: %s\n", colourString)); return -1; + } // If fallback colours exist, use the first of them, since we are more likely // to get them right then the paletted spot colours |