diff --git a/packages/core/utils/debug.d.ts b/packages/core/utils/debug.d.ts index 06c6c80c8b..fab5088e3c 100644 --- a/packages/core/utils/debug.d.ts +++ b/packages/core/utils/debug.d.ts @@ -57,7 +57,7 @@ export class SourceError extends ScopeError { /** * Creates a new SourceError by child error, source and optional message. * @param child The child error to extend. - * @param source The source where the error occured. + * @param source The source where the error occurred. * @param message Additonal message to prepend along the source location and the child error's message. */ constructor(child: Error, source: Source, message?: string); diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/AsyncTask.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/AsyncTask.java index a2fe95b46e..2aa1282f46 100644 --- a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/AsyncTask.java +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/image/AsyncTask.java @@ -326,7 +326,7 @@ protected void done() { } catch (InterruptedException e) { android.util.Log.w(LOG_TAG, e); } catch (ExecutionException e) { - throw new RuntimeException("An error occured while executing doInBackground()", + throw new RuntimeException("An error occurred while executing doInBackground()", e.getCause()); } catch (CancellationException e) { postResultIfNotInvoked(null);