Improve error message on OSX