- fn execute(&self, _: Option<&String>, configuration: &Configuration, command: &String) -> Result<()> {
- if command == self.command() {
- return sync_down(&configuration.data_directory, &configuration.remote_config);
+ fn execute(
+ &self,
+ _: Option<&String>,
+ configuration: &Configuration,
+ command: &str,
+ ) -> Result<()> {
+ match sync_down(&configuration.data_directory, &configuration.remote_config) {
+ Ok(()) => {}
+ Err(e) => {
+ if command == self.command() {
+ return Err(e);
+ }
+ }