aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatoshi Nakamoto <satoshin@gmx.com>2010-08-28 00:55:19 +0000
committerGavin Andresen <gavinandresen@gmail.com>2010-08-28 00:55:19 +0000
commitd3631907d62f605b725b4cc433173cec15c9d082 (patch)
treef55eedca3f87db96b2211b7d3ea6f65bca042807
parent87cfcfd3741e0cd38da671db79b199fe5bfb2949 (diff)
change switch name to -disablesafemode
-rw-r--r--rpc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc.cpp b/rpc.cpp
index a4297ad6b0..1708728724 100644
--- a/rpc.cpp
+++ b/rpc.cpp
@@ -995,8 +995,8 @@ void ThreadRPCServer2(void* parg)
// Observe safe mode
string strWarning = GetWarnings("rpc");
- if (strWarning != "" && !mapArgs.count("-overridesafety") && !setAllowInSafeMode.count(strMethod))
- throw runtime_error(strWarning);
+ if (strWarning != "" && !mapArgs.count("-disablesafemode") && !setAllowInSafeMode.count(strMethod))
+ throw runtime_error(string("Safe mode: ") + strWarning);
// Execute
map<string, rpcfn_type>::iterator mi = mapCallTable.find(strMethod);