Skip to content

suggest: helpful error messages on failed batched operations #35

Description

@syrenaaa

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().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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