hyperformula
hyperformula copied to clipboard
Add cellAddress to "Value of the formula cell is not computed." error message
Description
We should add a cell address to the error message so we can trace the source of this error more easily.
https://github.com/handsontable/hyperformula/blob/508e4e4d9961473a35686354f46e3162be2cd53e/src/DependencyGraph/FormulaCellVertex.ts#L74
A simple JSON.stringify
should do. ie:
throw Error(`Value of the formula cell is not computed for: ${JSON.stringify(this.cellAddress)}`)
TODO:
- [ ] Add
this.cellAddress
to the error message - [ ] Check if
this.formula
will be usefull here as well - [ ] Check if
this.cellAddress
should be better formatted thanstringify
@wojciechczerniak: Could you add an example of how to get this error?
@swistach Unfortunately, it's not that easy. All known reasons for this error are fixed. There are some tests here: https://github.com/handsontable/hyperformula/pull/446/files but you would have to go back to the revision before to test it.