Skip to content

Commit

Permalink
fix: remove data arg (#426)
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 468b697 commit eddfbc9
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 @@ -71,7 +71,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 @@ -81,7 +81,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 eddfbc9

Please sign in to comment.