From 6376b05b604415de5f0236d0b05e144a09cf21e7 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 18 May 2019 19:29:18 +0200 Subject: [PATCH] Add a small tempo to avoid the next message being mixed up with other DEBUG messages --- data/helpers.d/utils | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/helpers.d/utils b/data/helpers.d/utils index 73638dc90..8b6c11a80 100644 --- a/data/helpers.d/utils +++ b/data/helpers.d/utils @@ -25,6 +25,9 @@ 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 + # Small tempo to avoid the next message being mixed up with other DEBUG messages + sleep 0.5 + ynh_print_err --message="!!\n $app's script has encountered an error. Its execution was cancelled.\n!!" # If the script is executed from the CLI, dump the end of the log that precedes the crash.