From 4eabc2d65aa742e6cf55822943f04275531d0375 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Mon, 2 Jan 2023 21:39:15 -0600
Subject: Improve error logging

---
 src/view/com/post/PostText.tsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/view/com/post/PostText.tsx')

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
-- 
cgit 1.4.1

