We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90ec108 commit 0cb4b7aCopy full SHA for 0cb4b7a
pkg/prompt/stubber.go
@@ -98,7 +98,11 @@ func InitAskStubber() (*AskStubber, func()) {
98
}
99
100
if err := core.WriteAnswer(response, fieldName, userValue); err != nil {
101
- return fmt.Errorf("AskStubber failed writing the answer for field %q: %w", fieldName, err)
+ topic := fmt.Sprintf("field %q", fieldName)
102
+ if fieldName == "" {
103
+ topic = fmt.Sprintf("%q", message)
104
+ }
105
+ return fmt.Errorf("AskStubber failed writing the answer for %s: %w", topic, err)
106
107
return nil
108
0 commit comments