Conditional code for MacOS to skip an error not defined on the system