Handle exception with logging
authorLukasz Stanislawski <lukasz.stanislawski@gmail.com>
Thu, 10 Sep 2020 13:00:59 +0000 (15:00 +0200)
committerLukasz Stanislawski <lukasz.stanislawski@gmail.com>
Thu, 10 Sep 2020 13:00:59 +0000 (15:00 +0200)
Do not ignore exception as it causes SonarCube to complain.

Change-Id: I958249f93bdd5ff1b0f8b9ab4d46722cb6959c69

Oobe/Oobe.Wifi/Controls/Wifi/ApManager.cs

index c0488f9..08b65dd 100644 (file)
@@ -125,8 +125,9 @@ namespace Oobe.Wifi.Controls.Wifi
             {
                 await Task.Delay(10_000, updatingCancellation.Token);
             }
-            catch (Exception)
+            catch (Exception ex)
             {
+                Tizen.Log.Error("oobe", $"Task cancelled {ex.ToString()}");
             }
 
             return updatingCancellation.IsCancellationRequested == false;