From 0705f65336e9e0b6d44df4bb02b0e881d2b167c0 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Fri, 11 Mar 2016 18:00:52 +0100 Subject: [PATCH 1/2] Fix error message for missing dos api function --- le.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/le.sh b/le.sh index 7e4a532d..ac76c049 100755 --- a/le.sh +++ b/le.sh @@ -776,7 +776,7 @@ issue() { addcommand="$Le_Webroot-add" if ! command -v $addcommand ; then - _err "It seems that your api file is not correct, it must have a function named: $Le_Webroot" + _err "It seems that your api file is not correct, it must have a function named: $Le_Webroot-add" return 1 fi From f8ad8f34b1d9b8d1aea7b0eab674a669a9dbe4a9 Mon Sep 17 00:00:00 2001 From: kaklakariada Date: Sat, 12 Mar 2016 07:42:18 +0100 Subject: [PATCH 2/2] Use variable in error message instead of constructing it again --- le.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/le.sh b/le.sh index ac76c049..7ffed9bd 100755 --- a/le.sh +++ b/le.sh @@ -776,7 +776,7 @@ issue() { addcommand="$Le_Webroot-add" if ! command -v $addcommand ; then - _err "It seems that your api file is not correct, it must have a function named: $Le_Webroot-add" + _err "It seems that your api file is not correct, it must have a function named: $addcommand" return 1 fi