diff --git a/src/test/scala/gitbucket/core/api/JsonFormatSpec.scala b/src/test/scala/gitbucket/core/api/JsonFormatSpec.scala index 0fc254b..ecf421a 100644 --- a/src/test/scala/gitbucket/core/api/JsonFormatSpec.scala +++ b/src/test/scala/gitbucket/core/api/JsonFormatSpec.scala @@ -392,7 +392,7 @@ case e: com.fasterxml.jackson.core.JsonParseException => { val p = java.lang.Math.max(e.getLocation.getCharOffset() - 10, 0).toInt val message = json2.substring(p, java.lang.Math.min(p + 100, json2.length)) - throw new com.fasterxml.jackson.core.JsonParseException(message + e.getMessage, e.getLocation) + throw new com.fasterxml.jackson.core.JsonParseException(e.getProcessor, message + e.getMessage) } } val js1 = parse(resultJson)