From a4f3248545337ad2e45f3ff590e67a54e80605da Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Wed, 8 May 2019 01:04:57 +0200 Subject: [PATCH] Restore usage of ynh_print_err --- data/helpers.d/utils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/helpers.d/utils b/data/helpers.d/utils index c6603ab38..d24474ebc 100644 --- a/data/helpers.d/utils +++ b/data/helpers.d/utils @@ -34,7 +34,7 @@ ynh_exit_properly () { trap '' EXIT # Ignore new exit signals set +eu # Do not exit anymore if a command fail or if a variable is empty - echo -e "!!\n $app's script has encountered an error. Its execution was cancelled.\n!!" >&2 + ynh_print_err --message="!!\n $app's script has encountered an error. Its execution was cancelled.\n!!" # If the script is executed from a terminal, dump the end of the log that precedes the crash. if ynh_is_term