From 54fd9774e7d0e605a39a91d86bce6e5eec1323c9 Mon Sep 17 00:00:00 2001 From: Vasil Trifonov Date: Wed, 11 Apr 2018 10:44:20 +0300 Subject: [PATCH] fix: removed stacktrace printing when result error is set (#119) We don't need stack trace to be printed when we return the exception in the result.error as it will be returned in the reject callback. Fixes https://github.com/NativeScript/tns-core-modules-widgets/issues/118 --- .../widgets/src/main/java/org/nativescript/widgets/Async.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/widgets/src/main/java/org/nativescript/widgets/Async.java b/android/widgets/src/main/java/org/nativescript/widgets/Async.java index d61bf5b7a..bf444cc67 100644 --- a/android/widgets/src/main/java/org/nativescript/widgets/Async.java +++ b/android/widgets/src/main/java/org/nativescript/widgets/Async.java @@ -561,7 +561,6 @@ public class Async } catch (Exception e) // TODO: Catch all exceptions? { - e.printStackTrace(); result.error = e; return result; @@ -595,4 +594,4 @@ public class Async } } } -} \ No newline at end of file +}