aboutsummaryrefslogtreecommitdiff
path: root/src/script/script_error.cpp
diff options
context:
space:
mode:
authorsanket1729 <[email protected]>2020-09-23 16:30:32 -0500
committersanket1729 <[email protected]>2020-09-24 12:36:16 -0500
commitaf57766182013e17c23245671a33463f754ccd28 (patch)
tree71e8750eeecb6f0f3e4f8226748130a8a8b50154 /src/script/script_error.cpp
parentMerge #19927: validation: Reduce direct g_chainman usage (diff)
downloaddiscoin-af57766182013e17c23245671a33463f754ccd28.tar.xz
discoin-af57766182013e17c23245671a33463f754ccd28.zip
Fix misleading error message: Clean stack rule
Error messages in cleanstack is misleading as it lets the user believe that there are extra elements on stack which is incorrect if the stack is empty.
Diffstat (limited to 'src/script/script_error.cpp')
-rw-r--r--src/script/script_error.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script_error.cpp b/src/script/script_error.cpp
index 69e14803f..3b383393f 100644
--- a/src/script/script_error.cpp
+++ b/src/script/script_error.cpp
@@ -76,7 +76,7 @@ std::string ScriptErrorString(const ScriptError serror)
case SCRIPT_ERR_PUBKEYTYPE:
return "Public key is neither compressed or uncompressed";
case SCRIPT_ERR_CLEANSTACK:
- return "Extra items left on stack after execution";
+ return "Stack size must be exactly one after execution";
case SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH:
return "Witness program has incorrect length";
case SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY: