Skip to content

Invalid document id results in misleading error #25

@InfinitySamurai

Description

@InfinitySamurai

Hey guys,

Ran into a confusing error today. I was accidentally trying to insert a document with an invalid ObjectId (1 character too short) and the error message I received as output was:

[error] no docs returned from file: "LendingFiles.ts". verify that a docs array was exported. note: if using .js files, use "module.exports", instead of "exports".

Took me a long time to pin down that there was a particular fixture that was failing the whole thing because of my bad ObjectId

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions