Skip to content

suggest: helpful error messages on failed batched operations #35

@kibibites

Description

@kibibites

Currently, I am having an issue with creating entries in my db, and it only fails with this stacktrace:

error: Uncaught Error: Could not perform batched create operation.
      throw new PentagonBatchOpError(
            ^
    at withBatchedOperation (https://deno.land/x/pentagon@v0.1.4/src/batchOperations.ts:36:13)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async createMany (https://deno.land/x/pentagon@v0.1.4/src/crud.ts:135:41)
    at async create (https://deno.land/x/pentagon@v0.1.4/src/crud.ts:124:11)
    at async createImpl (https://deno.land/x/pentagon@v0.1.4/src/pentagon.ts:62:10)

it would be more helpful to provide more details on why the operation was failed when invoking res.commit().

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