Update opencv package error handling