Return function that signals error from pkgConfig