fix: update error message for empty CalleePath in Load function
Signed-off-by: Vojta Polak <vojta.polak@gmail.com>
This commit is contained in:
parent
7b79578d20
commit
7ef232d8be
|
|
@ -55,7 +55,7 @@ func (ld *desiredStateLoader) Load(f string, opts LoadOpts) (*state.HelmState, e
|
|||
|
||||
if len(fileArgs) > 0 || len(setArgs) > 0 {
|
||||
if opts.CalleePath == "" {
|
||||
return nil, fmt.Errorf("bug: opts.CalleePath was nil: f=%s, opts=%v", f, opts)
|
||||
return nil, fmt.Errorf("bug: opts.CalleePath was empty: f=%s, opts=%v", f, opts)
|
||||
}
|
||||
storage := state.NewStorage(opts.CalleePath, ld.logger, ld.fs)
|
||||
envld := state.NewEnvironmentValuesLoader(storage, ld.fs, ld.logger, ld.remote)
|
||||
|
|
|
|||
Loading…
Reference in New Issue