diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-15 10:46:12 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-15 10:46:12 -0600 |
commit | fb3a43c216a884f7185c53cba6e210d6659448d1 (patch) | |
tree | 171877b22ccd90087b894df8003ed42ebf689601 /src/state/models/feed-view.ts | |
parent | 6e93301542ce9593f614ab89883e3c87e38c5769 (diff) | |
download | voidsky-fb3a43c216a884f7185c53cba6e210d6659448d1.tar.zst |
Improve error messages
Diffstat (limited to 'src/state/models/feed-view.ts')
-rw-r--r-- | src/state/models/feed-view.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts index 905f7af7e..1c58a44d3 100644 --- a/src/state/models/feed-view.ts +++ b/src/state/models/feed-view.ts @@ -3,6 +3,7 @@ import * as GetTimeline from '../../third-party/api/src/client/types/app/bsky/fe import * as GetAuthorFeed from '../../third-party/api/src/client/types/app/bsky/feed/getAuthorFeed' import {RootStoreModel} from './root-store' import * as apilib from '../lib/api' +import {cleanError} from '../../view/lib/strings' export class FeedItemMyStateModel { repost?: string @@ -254,7 +255,7 @@ export class FeedModel { this.isLoading = false this.isRefreshing = false this.hasLoaded = true - this.error = err + this.error = cleanError(err) } // loader functions @@ -282,7 +283,7 @@ export class FeedModel { this._replaceAll(res) this._xIdle() } catch (e: any) { - this._xIdle(`Failed to load feed: ${e.toString()}`) + this._xIdle(e.toString()) } } @@ -293,7 +294,7 @@ export class FeedModel { this._prependAll(res) this._xIdle() } catch (e: any) { - this._xIdle(`Failed to load feed: ${e.toString()}`) + this._xIdle(e.toString()) } } |