setLastError

fun setLastError(context: Context)(source)

Update lastError variable based on error file, to check if app crashed. Can be called multiple times without changing the lastError variable changing.