reimagined / resolve

Full stack CQRS, DDD, Event Sourcing framework for Node.js

Home Page:https://reimagined.github.io/resolve/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Read-model projection Init handler eliminates errors

IhostVlad opened this issue · comments

Describe the bug
Read-model projection Init handler eliminates errors if one occurs.

To Reproduce
Create Init handler with erroneous behaviour

Init: async (store) => {
  await store.defineTable("abc", { indexes: {"abc": "string" }, fields: [] })
  await store.defineTable("abc", { indexes: {"abc": "string" }, fields: [] })
}

Read-model with such Init handler failed to build, but error is hidden

Expected behaviour
Read-model should crash with error message something like "Duplicate table name"

Desktop (please complete the following information):

  • ReSolve Version: 0.33.15