Support for Elasticsearch 7.7 (#1192)
This commit is contained in:
committed by
GitHub
parent
be6257380e
commit
51169d5efa
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user