diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-05-17 22:52:39 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-05-17 22:52:39 +0900 |
| commit | 68eb1b6737bf10d00360cab9b85c1ee090acd272 (patch) | |
| tree | 9f081246f7fb1cd8538b526793b1733e1f7d83bc /src/RpcMethod.cc | |
| parent | 7785ea8c4bea18e911d7ae26d707140b12ca91b7 (diff) | |
Ignore unacceptable options in RPC request instead of throwing error.
This change allows RPC client to send same options for the different
type of downloads.
Diffstat (limited to 'src/RpcMethod.cc')
| -rw-r--r-- | src/RpcMethod.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RpcMethod.cc b/src/RpcMethod.cc index 9cacf072..46dba121 100644 --- a/src/RpcMethod.cc +++ b/src/RpcMethod.cc @@ -96,8 +96,8 @@ void gatherOption } const SharedHandle<OptionHandler>& handler = optionParser->find(pref); if(!handler || !pred(handler)) { - throw DL_ABORT_EX - (fmt("%s option cannot be used in this context.", optionName.c_str())); + // Just ignore the unacceptable options in this context. + continue; } const String* opval = downcast<String>((*first).second); if(opval) { |
