Improve error report on open failure.