Missed from previous review: This module uses double quotes.

Also, come to think of it, you better convert this to just directly log the message via logger.error() - most callers don't expect this function to throw an exception (none of the existing failure cases throw).