Support for Elasticsearch 7.7 (#1192)

This commit is contained in:
Tomas Della Vedova
2020-05-14 09:55:54 +02:00
committed by GitHub
parent be6257380e
commit 51169d5efa
258 changed files with 15839 additions and 1485 deletions

View File

@ -15,7 +15,7 @@ class Serializer {
try {
var json = JSON.stringify(object)
} catch (err) {
throw new SerializationError(err.message)
throw new SerializationError(err.message, object)
}
return json
}
@ -25,7 +25,7 @@ class Serializer {
try {
var object = sjson.parse(json)
} catch (err) {
throw new DeserializationError(err.message)
throw new DeserializationError(err.message, json)
}
return object
}