resolve icon indicating copy to clipboard operation
resolve copied to clipboard

Read-model projection Init handler eliminates errors

Open IhostVlad opened this issue 2 years ago • 0 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

IhostVlad avatar Mar 04 '22 14:03 IhostVlad