Lines Matching refs:err
36 ninjaBuildDir, err := ctx.NinjaBuildDir()
37 if err != nil {
38 return err
41 targetRules, err := ctx.AllTargets()
42 if err != nil {
43 return fmt.Errorf("error determining target list: %s", err)
57 filePaths, err := parseNinjaLog(ninjaBuildDir)
58 if err != nil {
59 return err
65 err = removeFileAndEmptyDirs(filePath)
66 if err != nil {
67 return err
77 logFile, err := os.Open(logFilePath)
78 if err != nil {
79 if os.IsNotExist(err) {
82 return nil, err
117 if err := scanner.Err(); err != nil {
118 return nil, err
125 err := os.Remove(path)
126 if err != nil {
127 if os.IsNotExist(err) {
130 pathErr := err.(*os.PathError)
135 return err
139 path, err = filepath.Abs(path)
140 if err != nil {
141 return err
144 cwd, err := os.Getwd()
145 if err != nil {
146 return err
150 err = os.Remove(dir)
151 if err != nil {
152 pathErr := err.(*os.PathError)
158 return err