@@ -74,7 +74,7 @@ var rootCmd = &cobra.Command{
7474 Long : `Command-line interface for Fizzy` ,
7575 Version : "dev" ,
7676 PersistentPreRunE : func (cmd * cobra.Command , args []string ) error {
77- outputWriteErr = nil
77+ errOutputWrite = nil
7878 // Early jq validation: check flag conflicts first (actionable message),
7979 // then parse + compile before RunE so invalid expressions are rejected
8080 // with no side effects. The compiled code is reused below to avoid
@@ -171,9 +171,9 @@ var rootCmd = &cobra.Command{
171171 return nil
172172 },
173173 PersistentPostRunE : func (cmd * cobra.Command , args []string ) error {
174- if outputWriteErr != nil {
175- err := outputWriteErr
176- outputWriteErr = nil
174+ if errOutputWrite != nil {
175+ err := errOutputWrite
176+ errOutputWrite = nil
177177 return err
178178 }
179179 return nil
@@ -605,12 +605,12 @@ var testBuf bytes.Buffer
605605// lastRawOutput holds the raw output from the last command (before buffer reset).
606606var lastRawOutput string
607607
608- // outputWriteErr stores the first output rendering/writer error from the current command.
609- var outputWriteErr error
608+ // errOutputWrite stores the first output rendering/writer error from the current command.
609+ var errOutputWrite error
610610
611611func recordOutputError (err error ) {
612- if err != nil && outputWriteErr == nil {
613- outputWriteErr = err
612+ if err != nil && errOutputWrite == nil {
613+ errOutputWrite = err
614614 }
615615}
616616
@@ -1361,7 +1361,7 @@ func ResetTestMode() {
13611361 errSDKInit = nil
13621362 lastResult = nil
13631363 lastRawOutput = ""
1364- outputWriteErr = nil
1364+ errOutputWrite = nil
13651365 cfg = nil
13661366 creds = nil
13671367 profiles = nil
0 commit comments