fix main: Add a forgotten error check
This commit is contained in:
		
							parent
							
								
									2f6e008121
								
							
						
					
					
						commit
						c181decd9d
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		
							
								
								
									
										8
									
								
								main.go
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								main.go
									
										
									
									
									
								
							|  | @ -40,9 +40,13 @@ func templateCommand() cli.Command { | |||
| 		Action: func(c *cli.Context) error { | ||||
| 			include := c.StringSlice("include") | ||||
| 			exclude := c.StringSlice("exclude") | ||||
| 			ctx, err := loadContext(c) | ||||
| 			resources, err := templater.LoadAndPrepareTemplates(&include, &exclude, ctx) | ||||
| 
 | ||||
| 			ctx, err := loadContext(c) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
| 
 | ||||
| 			resources, err := templater.LoadAndPrepareTemplates(&include, &exclude, ctx) | ||||
| 			if err != nil { | ||||
| 				return err | ||||
| 			} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue