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/modals/CreateScene.tsx | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

(limited to 'src/view/com/modals/CreateScene.tsx')

diff --git a/src/view/com/modals/CreateScene.tsx b/src/view/com/modals/CreateScene.tsx
index c26087850..d92fe2e31 100644
--- a/src/view/com/modals/CreateScene.tsx
+++ b/src/view/com/modals/CreateScene.tsx
@@ -57,10 +57,7 @@ export function Component({}: {}) {
         })
         .catch(e =>
           // an error here is not critical
-          store.log.error(
-            'Failed to update scene profile during creation',
-            e.toString(),
-          ),
+          store.log.error('Failed to update scene profile during creation', e),
         )
       // follow the scene
       await store.api.app.bsky.graph.follow
@@ -78,10 +75,7 @@ export function Component({}: {}) {
         )
         .catch(e =>
           // an error here is not critical
-          store.log.error(
-            'Failed to follow scene after creation',
-            e.toString(),
-          ),
+          store.log.error('Failed to follow scene after creation', e),
         )
       Toast.show('Scene created')
       store.shell.closeModal()
@@ -94,7 +88,7 @@ export function Component({}: {}) {
       } else if (e instanceof AppBskyActorCreateScene.HandleNotAvailableError) {
         setError(`The handle "${handle}" is not available.`)
       } else {
-        store.log.error('Failed to create scene', e.toString())
+        store.log.error('Failed to create scene', e)
         setError(
           'Failed to create the scene. Check your internet connection and try again.',
         )
-- 
cgit 1.4.1

