helpers2.1: logging tweak in ynh_die

This commit is contained in:
Alexandre Aubin 2024-06-30 19:43:18 +02:00
parent fcaa366e91
commit 1e1409c7d7

View file

@ -4,6 +4,7 @@
# #
# usage: ynh_die "Some message" # usage: ynh_die "Some message"
ynh_die() { ynh_die() {
set +o xtrace # set +x
if [[ -n "${1:-}" ]] if [[ -n "${1:-}" ]]
then then
python3 -c 'import yaml, sys; print(yaml.dump({"error": sys.stdin.read()}))' <<< "${1:-}" >>"$YNH_STDRETURN" python3 -c 'import yaml, sys; print(yaml.dump({"error": sys.stdin.read()}))' <<< "${1:-}" >>"$YNH_STDRETURN"