UrielCh/opencv4nodejs

Library throws strings instead of error objects

Opened this issue · 2 comments

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.

image

Repro: new (require('@u4/opencv4nodejs').Mat)().getDataAsArray()

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.