• Takes an error-like object as a parameter and returns the same object without client property, which usually contain an overwhelming amount of data. Useful when error objects are logged as is to prevent reaching the log length limit.

    Important: the change is done on an original object reference, which is returned. There is no cloning done to prevent changes to original instance.

    Supports database errors thrown by following packages: pg

    Parameters

    • error: Object

    Returns Error | ErrorObject

Generated using TypeDoc