We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 097ff6f commit fb182e7Copy full SHA for fb182e7
1 file changed
cmd/root.go
@@ -217,9 +217,9 @@ func Execute(m Metadata) {
217
// we should add them back later as it looks cleaner
218
errorTextStyle := styles.ErrorText.UnsetMargins()
219
220
- // Fang passes the destination for errors (normally stderr). pterm's
221
- // global Error printer does not know about it, so temporarily point
222
- // pterm at fang's writer for this handler invocation.
+ // Keep command errors on fang's error stream, normally stderr. This
+ // gives curl-like commands a quiet stdout for response bodies and
+ // scripts while preserving the existing pterm error styling.
223
oldErrorWriter := pterm.Error.Writer
224
pterm.Error.Writer = w
225
defer func() {
0 commit comments