improve msg for better debug when OSError(related with #5632)