Print error message only if all stat operations failed and not for each individual stat