return correct error from filepath.Walk