about summary refs log tree commit diff
path: root/src/state/lib/api.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-02 21:39:15 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-02 21:39:15 -0600
commit4eabc2d65aa742e6cf55822943f04275531d0375 (patch)
tree645742da4a45eef45019d2d0193f022b3672e01c /src/state/lib/api.ts
parent6885fb2b41efdb29e386cf696ea7304baf3a87c8 (diff)
downloadvoidsky-4eabc2d65aa742e6cf55822943f04275531d0375.tar.zst
Improve error logging
Diffstat (limited to 'src/state/lib/api.ts')
-rw-r--r--src/state/lib/api.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/state/lib/api.ts b/src/state/lib/api.ts
index 6bbc43271..e701ae6f5 100644
--- a/src/state/lib/api.ts
+++ b/src/state/lib/api.ts
@@ -126,10 +126,7 @@ export async function post(
           },
         } as AppBskyEmbedExternal.Main
       } catch (e: any) {
-        store.log.warn(
-          `Failed to fetch link meta for ${link.value}`,
-          e.toString(),
-        )
+        store.log.warn(`Failed to fetch link meta for ${link.value}`, e)
       }
     }
   }