fix error message to not use 10.10 deprecated API