From aaba4932b034177188d0974580c806f4e741138d Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Fri, 12 Jul 2019 13:13:39 +0200 Subject: [PATCH] Show name of deprecated function on screen output --- include/functions | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/include/functions b/include/functions index 06f77c67..039a1a4c 100644 --- a/include/functions +++ b/include/functions @@ -3378,42 +3378,41 @@ # ################################################################################ # For compatibility reasons they are listed here, but will be phased out in - # steps. If they still get used, they will trigger an alert when using the - # developer mode. In a later phase they will trigger errors on screen. + # steps. If they still get used, they will trigger errors on screen. ################################################################################ counttests() { - DisplayWarning "Deprecated function used" + DisplayWarning "Deprecated function used (counttests)" if IsDeveloperMode; then Debug "Warning: old counttests function is used. Please replace any reference with CountTests."; fi CountTests } logtext() { - DisplayWarning "Deprecated function used" + DisplayWarning "Deprecated function used (logtext)" if IsDeveloperMode; then Debug "Warning: old logtext function is used. Please replace any reference with LogText."; fi LogText "$1" } logtextbreak() { - DisplayWarning "Deprecated function used" + DisplayWarning "Deprecated function used (logtextbreak)" if IsDeveloperMode; then Debug "Warning: old logtextbreak function is used. Please replace any reference with LogTextBreak."; fi LogTextBreak "$1" } report() { - DisplayWarning "Deprecated function used" + DisplayWarning "Deprecated function used (report)" if IsDeveloperMode; then Debug "Warning: old report function is used. Please replace any reference with Report."; fi Report "$1" } wait_for_keypress() { - DisplayWarning "Deprecated function used" + DisplayWarning "Deprecated function used (wait_for_keypress)" if IsDeveloperMode; then Debug "Warning: old wait_for_keypress function is used. Please replace any reference with WaitForKeyPress."; fi WaitForKeyPress } ShowResult() { - DisplayWarning "Deprecated function used: ShowResult()" + DisplayWarning "Deprecated function used (ShowResult)" if IsDeveloperMode; then Debug "Warning: old ShowResult() function is used. Please replace any reference with WaitForKeyPress."; fi }