Improve error messages
This commit is contained in:
parent
6e93301542
commit
fb3a43c216
15 changed files with 156 additions and 32 deletions
|
@ -4,6 +4,7 @@ import {RootStoreModel} from './root-store'
|
|||
import {Declaration} from './_common'
|
||||
import {hasProp} from '../lib/type-guards'
|
||||
import {APP_BSKY_GRAPH} from '../../third-party/api'
|
||||
import {cleanError} from '../../view/lib/strings'
|
||||
|
||||
const UNGROUPABLE_REASONS = ['trend', 'assertion']
|
||||
|
||||
|
@ -215,7 +216,7 @@ export class NotificationsViewModel {
|
|||
this.isLoading = false
|
||||
this.isRefreshing = false
|
||||
this.hasLoaded = true
|
||||
this.error = err
|
||||
this.error = cleanError(err)
|
||||
}
|
||||
|
||||
// loader functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue