builder: add missing error check for ioutil.TempFile()
Этот коммит содержится в:
		
							родитель
							
								
									602d3d7c78
								
							
						
					
					
						коммит
						485a9284e7
					
				
					 1 изменённых файлов: 4 добавлений и 0 удалений
				
			
		| 
						 | 
					@ -155,6 +155,10 @@ func compileAndCacheCFile(abspath, tmpdir string, cflags []string, printCommands
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Write dependencies file.
 | 
						// Write dependencies file.
 | 
				
			||||||
	f, err := ioutil.TempFile(filepath.Dir(depfileCachePath), depfileName)
 | 
						f, err := ioutil.TempFile(filepath.Dir(depfileCachePath), depfileName)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return "", err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	buf, err = json.MarshalIndent(dependencySlice, "", "\t")
 | 
						buf, err = json.MarshalIndent(dependencySlice, "", "\t")
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		panic(err) // shouldn't happen
 | 
							panic(err) // shouldn't happen
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Загрузка…
	
	Создание таблицы
		
		Сослаться в новой задаче