Skip to content

precaptureStackTraces does not enhance stack traces for common errors. #722

@radicaled

Description

@radicaled

For common mistakes, like a malformed AQL query via db.query, or an operation like db.save on an edge collection missing _to or _from, the stack traces arangojs generates aren't coherent even with precaptureStackTraces.

I think that's because error responses from the server don't have the enhanced stack traces added to them? EG

reject(new ArangoError(res));

These kinds of errors account for almost all the errors I see, so it would be great if precaptureStackTraces enhanced these ones as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA code defect that needs to be fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions