Commit 5b13d712 authored by alan.f's avatar alan.f

update-exception-code

parent 86a03328
...@@ -34,15 +34,11 @@ namespace C_UI ...@@ -34,15 +34,11 @@ namespace C_UI
await client.AddRequestAsync(request); await client.AddRequestAsync(request);
await client.SendAsync(); await client.SendAsync();
}) })
.Select(t => t.Wait(1)) .Select(t => t.Exception.Flatten())
.Subscribe(filename => .Subscribe(filename =>
{ logger.Warn($"file sent:{filename}"),
logger.Warn($"file sent:{filename}");
},
onError => onError =>
{ logger.Error(onError.Message),
logger.Error(onError.Message);
},
() => { }); () => { });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment