[ https://issues.apache.org/jira/browse/FELIX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16122476#comment-16122476 ]
David Leangen commented on FELIX-5675: -------------------------------------- Committed in r1804738. If there are no objections, then I will close this issue. > JSONParser needs a little bit more context when reporting an error > ------------------------------------------------------------------ > > Key: FELIX-5675 > URL: https://issues.apache.org/jira/browse/FELIX-5675 > Project: Felix > Issue Type: Bug > Components: Utils > Reporter: David Leangen > Assignee: David Leangen > > Occasionally a Key/Value Pair evaluates to an empty string. In that case, the > error message is something like: > {code} > Caused by: java.lang.IllegalArgumentException: Malformatted JSON key-value > pair: > at > org.apache.felix.serializer.impl.json.JSONParser.parseKeyValue(JSONParser.java:106) > at > org.apache.felix.serializer.impl.json.JSONParser.parseObject(JSONParser.java:203) > ... 56 more > {code} > This makes it very challenging to find where the error is in the file. > In order to add more context, the previously-parsed Key/Value pair should > also be output. -- This message was sent by Atlassian JIRA (v6.4.14#64029)