aboutsummaryrefslogtreecommitdiff
path: root/rpc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rpc.cpp')
-rw-r--r--rpc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc.cpp b/rpc.cpp
index e29a5041d4..c036573c91 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);