summaryrefslogtreecommitdiff
path: root/src/cat/TPTScriptInterface.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-10-21 23:42:06 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-10-26 14:17:02 (GMT)
commit69aad4caa2a8556432c4a3e6a8849fad557ab335 (patch)
treec0bdcf910dd587ae07287804e18a9eef05caa096 /src/cat/TPTScriptInterface.cpp
parente773abdcc89c1f7cc09cce39c6d4b30eaa6fd69e (diff)
downloadpowder-69aad4caa2a8556432c4a3e6a8849fad557ab335.zip
powder-69aad4caa2a8556432c4a3e6a8849fad557ab335.tar.gz
some testing with DEBUG mode, add some stuff
Conflicts: src/cat/TPTScriptInterface.cpp
Diffstat (limited to 'src/cat/TPTScriptInterface.cpp')
-rw-r--r--src/cat/TPTScriptInterface.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp
index 7f15566..982425f 100644
--- a/src/cat/TPTScriptInterface.cpp
+++ b/src/cat/TPTScriptInterface.cpp
@@ -218,7 +218,12 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * words)
{
newValue = GetParticleType(((StringType)value).Value());
if (newValue < 0 || newValue >= PT_NUM)
- throw GeneralException("Invalid element");
+ {
+ if (newString == "GOLD")
+ throw GeneralException("No, GOLD will not be an element");
+ else
+ throw GeneralException("Invalid element");
+ }
}
else
throw GeneralException("Invalid value for assignment");