diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-02 21:39:15 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-02 21:39:15 -0600 |
commit | 4eabc2d65aa742e6cf55822943f04275531d0375 (patch) | |
tree | 645742da4a45eef45019d2d0193f022b3672e01c /src/view/com/post/PostText.tsx | |
parent | 6885fb2b41efdb29e386cf696ea7304baf3a87c8 (diff) | |
download | voidsky-4eabc2d65aa742e6cf55822943f04275531d0375.tar.zst |
Improve error logging
Diffstat (limited to 'src/view/com/post/PostText.tsx')
-rw-r--r-- | src/view/com/post/PostText.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/view/com/post/PostText.tsx b/src/view/com/post/PostText.tsx index 4e8761eb5..44f9e4d20 100644 --- a/src/view/com/post/PostText.tsx +++ b/src/view/com/post/PostText.tsx @@ -23,9 +23,7 @@ export const PostText = observer(function PostText({ } const newModel = new PostModel(store, uri) setModel(newModel) - newModel - .setup() - .catch(err => store.log.error('Failed to fetch post', err.toString())) + newModel.setup().catch(err => store.log.error('Failed to fetch post', err)) }, [uri, model?.uri, store]) // loading |