mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-31 16:11:03 +01:00 
			
		
		
		
	Style change
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
		
							parent
							
								
									85df2c80a8
								
							
						
					
					
						commit
						f3dbfc9045
					
				| @ -115,13 +115,19 @@ func ExecuteCommand( | ||||
| 			fmt.Println("stdout: ", stdout.String()) | ||||
| 			fmt.Println("stderr: ", stderr.String()) | ||||
| 
 | ||||
| 			return stdout.String(), stderr.String(), fmt.Errorf("command failed with: %s", stderr.String()) | ||||
| 			return stdout.String(), stderr.String(), fmt.Errorf( | ||||
| 				"command failed with: %s", | ||||
| 				stderr.String(), | ||||
| 			) | ||||
| 		} | ||||
| 
 | ||||
| 		return stdout.String(), stderr.String(), nil | ||||
| 	case <-time.After(execConfig.timeout): | ||||
| 
 | ||||
| 		return stdout.String(), stderr.String(), fmt.Errorf("command timed out after %s", execConfig.timeout) | ||||
| 		return stdout.String(), stderr.String(), fmt.Errorf( | ||||
| 			"command timed out after %s", | ||||
| 			execConfig.timeout, | ||||
| 		) | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user