feat: Emit clear error message instead of panic on empty chart name (#1171)
Resolves #999
This commit is contained in:
		
							parent
							
								
									1654ce4c18
								
							
						
					
					
						commit
						a2c62c9e73
					
				|  | @ -207,6 +207,12 @@ func (ld *desiredStateLoader) renderAndLoad(env, overrodeEnv *environment.Enviro | ||||||
| 			return nil, err | 			return nil, err | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|  | 		for i, r := range currentState.Releases { | ||||||
|  | 			if r.Chart == "" { | ||||||
|  | 				return nil, fmt.Errorf("error during %s parsing: encountered empty chart while reading release %q at index %d", id, r.Name, i) | ||||||
|  | 			} | ||||||
|  | 		} | ||||||
|  | 
 | ||||||
| 		if finalState == nil { | 		if finalState == nil { | ||||||
| 			finalState = currentState | 			finalState = currentState | ||||||
| 		} else { | 		} else { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue