Read-model projection Init handler eliminates errors
IhostVlad opened this issue · comments
Vladislav V commented
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