While you're improving error messages, this probably wants the errno value logged too.