---
title: "didFailWithError | Mobile sdk | Mobile sdk android | Android"
description: "didFailWithError"
---

# didFailWithError

@[MainThread](https://developer.android.com/reference/kotlin/androidx/annotation/MainThread.html)

abstract fun [didFailWithError](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.location/-m-t-location-manager-delegate/did-fail-with-error/)(error: [Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html))

Triggered when location updates fail.
