Skip to content

The original error information should be provided. #1255

Description

@LvChengbin

Issue description

https://github.com/SocketSomeone/cent.js/blob/961e3836116757e3f0a9cd244184ebce947d3f81/src/cent.client.ts#L24,30

The original error details are hidden because the res?.error is converted to [object Object].

Code sample

https://github.com/SocketSomeone/cent.js/blob/961e3836116757e3f0a9cd244184ebce947d3f81/src/cent.client.ts#L24

The original error details are hidden because the `res?.error` is converted to `[object Object]`.

Node.js version

24.14.0

Operating system

MacOS

Priority this issue should have

Medium (should be fixed soon)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions