about summary refs log tree commit diff
path: root/src/view/com/modals/CreateScene.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com/modals/CreateScene.tsx')
-rw-r--r--src/view/com/modals/CreateScene.tsx18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/view/com/modals/CreateScene.tsx b/src/view/com/modals/CreateScene.tsx
index 60c240546..c26087850 100644
--- a/src/view/com/modals/CreateScene.tsx
+++ b/src/view/com/modals/CreateScene.tsx
@@ -55,7 +55,13 @@ export function Component({}: {}) {
           displayName,
           description,
         })
-        .catch(e => console.error(e)) // an error here is not critical
+        .catch(e =>
+          // an error here is not critical
+          store.log.error(
+            'Failed to update scene profile during creation',
+            e.toString(),
+          ),
+        )
       // follow the scene
       await store.api.app.bsky.graph.follow
         .create(
@@ -70,7 +76,13 @@ export function Component({}: {}) {
             createdAt: new Date().toISOString(),
           },
         )
-        .catch(e => console.error(e)) // an error here is not critical
+        .catch(e =>
+          // an error here is not critical
+          store.log.error(
+            'Failed to follow scene after creation',
+            e.toString(),
+          ),
+        )
       Toast.show('Scene created')
       store.shell.closeModal()
       store.nav.navigate(`/profile/${fullHandle}`)
@@ -82,7 +94,7 @@ export function Component({}: {}) {
       } else if (e instanceof AppBskyActorCreateScene.HandleNotAvailableError) {
         setError(`The handle "${handle}" is not available.`)
       } else {
-        console.error(e)
+        store.log.error('Failed to create scene', e.toString())
         setError(
           'Failed to create the scene. Check your internet connection and try again.',
         )