on IOError, print err.strerror