Skip to content

Output errors reason when a request is failing with quiet option #1026

@soullivaneuh

Description

@soullivaneuh

I use HTTPie on a script to convert images:

http --quiet --form --download --output "${png_path}" POST https://imagine.company.com/convert \
	stripmeta==true \
	lossless==true \
	type==png \
	background==white \
	file@"${svg_path}"

It works, but when it fail I don't have any information because of the --quiet option:

bash build.sh
HTTPie version: 2.3.0
assets/fa-pro/png/brands/500px.png
make: *** [Makefile:4: build] Error 5

On that case, I have a Bad Gateway error (504).

If I remove it, I have the information but also when it success (200).

It would be great to have the possibility to quiet the output except if it's a request error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions