log error message when pil cannot be loaded