We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f0de04 commit 4e5b9fbCopy full SHA for 4e5b9fb
internal/cli/feedback/feedback.go
@@ -179,7 +179,7 @@ func Fatal(errorMsg string, exitCode ExitCode) {
179
Error string `json:"error"`
180
Output *OutputStreamsResult `json:"output,omitempty"`
181
}
182
- res := FatalError{
+ res := &FatalError{
183
Error: errorMsg,
184
185
if output := getOutputStreamResult(); !output.Empty() {
@@ -188,11 +188,11 @@ func Fatal(errorMsg string, exitCode ExitCode) {
188
var d []byte
189
switch format {
190
case JSON:
191
- d, _ = json.MarshalIndent(res, "", " ")
+ d, _ = json.MarshalIndent(augment(res), "", " ")
192
case MinifiedJSON:
193
- d, _ = json.Marshal(res)
+ d, _ = json.Marshal(augment(res))
194
case YAML:
195
- d, _ = yaml.Marshal(res)
+ d, _ = yaml.Marshal(augment(res))
196
default:
197
panic("unknown output format")
198
0 commit comments