Skip to content

Commit

Permalink
feat(Login): log login errors
Browse files Browse the repository at this point in the history
  • Loading branch information
axiel7 committed Aug 5, 2024
1 parent ac512c8 commit 013c3b3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.axiel7.anihyou.data.repository

import android.net.Uri
import android.util.Log
import androidx.work.WorkManager
import com.apollographql.apollo.ApolloClient
import com.apollographql.apollo.cache.normalized.FetchPolicy
import com.apollographql.apollo.cache.normalized.fetchPolicy
import com.axiel7.anihyou.ViewerOptionsQuery
import com.axiel7.anihyou.data.api.response.errorString
import com.axiel7.anihyou.worker.NotificationWorker.Companion.cancelNotificationWork
import javax.inject.Inject
import javax.inject.Singleton
Expand Down Expand Up @@ -34,6 +36,8 @@ class LoginRepository @Inject constructor(
response.data?.Viewer?.let { viewer ->
defaultPreferencesRepository.saveViewerInfo(viewer)
}
} else {
Log.e("AniHyou", "Error saving user data: ${response.errorString}")
}
}

Expand Down

0 comments on commit 013c3b3

Please sign in to comment.