mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers2.1: logging tweak in ynh_die
This commit is contained in:
parent
fcaa366e91
commit
1e1409c7d7
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue