mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add a small tempo to avoid the next message being mixed up with other DEBUG messages
This commit is contained in:
parent
899d3d4f10
commit
6376b05b60
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue