Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit afa6968

Browse files
committed
Update error naming
1 parent d05996c commit afa6968

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internals/secrethub/variable_reader.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ func (p *promptMissingVariableReader) ReadVariable(name string) (string, error)
6868
variable, err := p.reader.ReadVariable(name)
6969
if err == tpl.ErrTemplateVarNotFound(name) {
7070
question := fmt.Sprintf("What is the value of the \"%s\" template variable?\n", name)
71-
answer, askErr := ui.Ask(p.io, question)
72-
if askErr != nil {
73-
return "", err
71+
answer, err := ui.Ask(p.io, question)
72+
if err != nil {
73+
return "", tpl.ErrTemplateVarNotFound(name)
7474
}
7575
return answer, nil
7676
} else if err != nil {

0 commit comments

Comments
 (0)