summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-21 15:37:16 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-21 15:37:16 +1100
commit92227cdf1872c516ccdc5aa2de348f8fec410e00 (patch)
tree1a7a2be852a14ad6e42e1617d99b678f3d7895b8 /src/api
parentFix the roles bug (diff)
downloadserver-92227cdf1872c516ccdc5aa2de348f8fec410e00.tar.xz
Set default cdn endpoints so that local testing works
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/channels/#channel_id/messages/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts
index 86864edb..523b0cf8 100644
--- a/src/api/routes/channels/#channel_id/messages/index.ts
+++ b/src/api/routes/channels/#channel_id/messages/index.ts
@@ -247,7 +247,7 @@ router.post(
 					Attachment.create({ ...file, proxy_url: file.url }),
 				);
 			} catch (error) {
-				return res.status(400).json(error);
+				return res.status(400).json({ message: error!.toString() })
 			}
 		}