Skip to content

Commit

Permalink
fix: remove data arg (#425)
Browse files Browse the repository at this point in the history
Signed-off-by: Timur Bolotov <[email protected]>
  • Loading branch information
timursaurus authored Mar 11, 2023
1 parent cdaf635 commit e7cf645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class NoLivingConnectionsError extends OpenSearchClientError {

class SerializationError extends OpenSearchClientError {
constructor (message, data) {
super(message, data)
super(message)
Error.captureStackTrace(this, SerializationError)
this.name = 'SerializationError'
this.message = message || 'Serialization Error'
Expand All @@ -79,7 +79,7 @@ class SerializationError extends OpenSearchClientError {

class DeserializationError extends OpenSearchClientError {
constructor (message, data) {
super(message, data)
super(message)
Error.captureStackTrace(this, DeserializationError)
this.name = 'DeserializationError'
this.message = message || 'Deserialization Error'
Expand Down

0 comments on commit e7cf645

Please sign in to comment.