From 2aa8810021ba03a1150f6d157a1aaa6c7ef35ca3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 12 Mar 2007 00:06:20 +0000 Subject: [PATCH] used a better error number --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40605 --- core/sm_stringutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sm_stringutil.cpp b/core/sm_stringutil.cpp index 6a6e86b8..b5686319 100644 --- a/core/sm_stringutil.cpp +++ b/core/sm_stringutil.cpp @@ -28,7 +28,7 @@ #define CHECK_ARGS(x) \ if ((arg+x) > args) { \ - pCtx->ThrowNativeErrorEx(SP_ERROR_PARAMS_MAX, "String formatted incorrectly - parameter %d (total %d)", arg, args); \ + pCtx->ThrowNativeErrorEx(SP_ERROR_PARAM, "String formatted incorrectly - parameter %d (total %d)", arg, args); \ return 0; \ }