From bee5c1016a5472066c52d7d475778e7b135bc7ee Mon Sep 17 00:00:00 2001 From: kakuhen <77321650+kakuhen@users.noreply.github.com> Date: Tue, 22 Feb 2022 19:59:48 -0800 Subject: [PATCH] Clarify torrent-add result on duplicate torrents (#2690) Rewrote a sentence to ensure it's clear that a duplicate torrent error still returns a "success" result over RPC. --- docs/rpc-spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rpc-spec.md b/docs/rpc-spec.md index 4e648fc6c..33096e1d6 100644 --- a/docs/rpc-spec.md +++ b/docs/rpc-spec.md @@ -467,7 +467,7 @@ Response arguments: * On success, a `torrent-added` object in the form of one of 3.3's torrent objects with the fields for `id`, `name`, and `hashString`. -* On failure due to a duplicate torrent existing, a `torrent-duplicate` object in the same form. +* When attempting to add a duplicate torrent, a `torrent-duplicate` object in the same form is returned, but the response's `result` value is still `success`. ### 3.5. Removing a Torrent