diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-14 18:49:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-14 18:49:13 -0300 |
commit | caa876d59502c2020e7685adba470a3fae8786bb (patch) | |
tree | f3119b50fc1ea6f5369d60e7b1c03ba8bffdf98d /npc/dev | |
parent | e356ef5e200896fbf74803618c5add7dca8b18ce (diff) | |
download | serverdata-caa876d59502c2020e7685adba470a3fae8786bb.tar.gz serverdata-caa876d59502c2020e7685adba470a3fae8786bb.tar.bz2 serverdata-caa876d59502c2020e7685adba470a3fae8786bb.tar.xz serverdata-caa876d59502c2020e7685adba470a3fae8786bb.zip |
Hercules updates (authored by 4144)
Diffstat (limited to 'npc/dev')
-rw-r--r-- | npc/dev/test.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/dev/test.txt b/npc/dev/test.txt index e9058aee0..f98651dfd 100644 --- a/npc/dev/test.txt +++ b/npc/dev/test.txt @@ -730,10 +730,10 @@ function script HerculesSelfTestHelper { callsub(OnCheckStr, "sprintf (positional)", sprintf("'%2$s' '%1$c'", "First", "Second"), "'Second' 'F'"); if (.errors) { - debugmes "Script engine self-test [ \033[0;31mFAILED\033[0m ]"; - debugmes "**** The test was completed with " + .errors + " errors. ****"; + consolemes(CONSOLEMES_DEBUG, "Script engine self-test [ \033[0;31mFAILED\033[0m ]"); + consolemes(CONSOLEMES_ERROR, "**** The test was completed with " + .errors + " errors. ****"); } else { - debugmes "Script engine self-test [ \033[0;32mPASSED\033[0m ]"; + consolemes(CONSOLEMES_DEBUG, "Script engine self-test [ \033[0;32mPASSED\033[0m ]"); } return .errors; end; @@ -778,8 +778,8 @@ OnReportError: .@val$ = getarg(1,""); .@ref$ = getarg(2,""); if (.errors == 1) - debugmes "**** WARNING: Any self-test results past this point are unreliable because of previous errors. ****"; - debugmes "Error: "+.@msg$+": '"+.@val$+"' (found) != '"+.@ref$+"' (expected)"; + consolemes(CONSOLEMES_ERROR, "**** WARNING: Any self-test results past this point are unreliable because of previous errors. ****"); + consolemes(CONSOLEMES_ERROR, "Error: "+.@msg$+": '"+.@val$+"' (found) != '"+.@ref$+"' (expected)"); ++.errors; //end; return; |