Library throws strings instead of error objects
Opened this issue · 2 comments
SimonSchick commented
This is pretty bad because it makes it impossible to trace errors.
I think it would be a relatively easy fix here https://github.com/UrielCh/opencv4nodejs/blob/master/cc/native-node-utils/TryCatch.h#L32 unfortunately my CPP game is terrible and I've never worked on any CPP node modules.
SimonSchick commented
Repro: new (require('@u4/opencv4nodejs').Mat)().getDataAsArray()
UrielCh commented
Thank you for pointing out the file that needs correction. I'm currently facing homelessness, so I'll address that once I've resolved this pressing issue.