Commit f672d21f authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-sh-functions: allow override error comment with EPMPROMOMESSAGE

parent 35228629
...@@ -321,11 +321,13 @@ sudoepm() ...@@ -321,11 +321,13 @@ sudoepm()
# Print error message and stop the program # Print error message and stop the program
fatal() fatal()
{ {
local PROMOMESSAGE="$EPMPROMOMESSAGE"
[ -n "$PROMOMESSAGE" ] || PROMOMESSAGE=" (you can discuss the epm $EPMVERSION problem in Telegram: https://t.me/useepm)"
if [ -z "$TEXTDOMAIN" ] ; then if [ -z "$TEXTDOMAIN" ] ; then
set_color $RED >&2 set_color $RED >&2
echo -n "ERROR: " >&2 echo -n "ERROR: " >&2
restore_color >&2 restore_color >&2
echo "$* (you can discuss the epm $EPMVERSION problem in Telegram: https://t.me/useepm)" >&2 echo "$* $PROMOMESSAGE" >&2
# else # else
# echog "Error in $0: $@" >&2 # echog "Error in $0: $@" >&2
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment