Improve logging in ReplicateRepository
ReplicateRepository currently does not add a lot of context to the errors when returning them. This makes it difficult to identify which command failed. This commit improves the situation by adding context to the returned errors.
Related to #3248 (closed)
Edited by Sami Hiltunen