diff options
author | Ibrahem Zidan <brahem@aotsw.com> | 2019-04-29 06:01:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 06:01:03 +0200 |
commit | e7585e18ee42517913e35aa7df750d76f2e76bad (patch) | |
tree | 20e7fc77ad042c8b82eec3cf11bf10481c6e04af /npc/dev | |
parent | a99d988be4d469c1ab60d860aac57ff3a6f24cac (diff) | |
parent | 9f6ffd2f9aae9c39eb2fe2be2c60cfd45c18842a (diff) | |
download | hercules-e7585e18ee42517913e35aa7df750d76f2e76bad.tar.gz hercules-e7585e18ee42517913e35aa7df750d76f2e76bad.tar.bz2 hercules-e7585e18ee42517913e35aa7df750d76f2e76bad.tar.xz hercules-e7585e18ee42517913e35aa7df750d76f2e76bad.zip |
Merge pull request #2440 from Emistry/scriptcommand_consolemes
Added *consolemes script command
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 2822ee65c..a867a09b2 100644 --- a/npc/dev/test.txt +++ b/npc/dev/test.txt @@ -786,10 +786,10 @@ function script HerculesSelfTestHelper { callsub(OnCheck, "data_to_string (integer variable)", data_to_string(.@x), ".@x"); 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_DEBUG, "**** 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; @@ -840,8 +840,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_DEBUG, "**** WARNING: Any self-test results past this point are unreliable because of previous errors. ****"); + consolemes(CONSOLEMES_DEBUG, "Error: "+.@msg$+": '"+.@val$+"' (found) != '"+.@ref$+"' (expected)"); ++.errors; //end; return; |