From dc1416d5d8e45346cbb120c1127708aabe8f0353 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sat, 26 Jul 2025 20:05:13 -0400 Subject: [PATCH] fix rendering of errors from Chat API --- packages/frontend/src/pages/chat/room.form.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/pages/chat/room.form.vue b/packages/frontend/src/pages/chat/room.form.vue index eafe458ab3..8b1fed5156 100644 --- a/packages/frontend/src/pages/chat/room.form.vue +++ b/packages/frontend/src/pages/chat/room.form.vue @@ -43,7 +43,7 @@ import * as os from '@/os.js'; import { i18n } from '@/i18n.js'; import { uploadFile } from '@/utility/upload.js'; import { miLocalStorage } from '@/local-storage.js'; -import { misskeyApi } from '@/utility/misskey-api.js'; +import { misskeyApi, printError } from '@/utility/misskey-api.js'; import { prefer } from '@/preferences.js'; import { Autocomplete } from '@/utility/autocomplete.js'; import { emojiPicker } from '@/utility/emoji-picker.js'; @@ -198,7 +198,7 @@ function send() { return os.alert({ type: 'error', title: i18n.ts.error, - text: String(err), + text: printError(err), }); }).finally(() => { sending.value = false; @@ -215,7 +215,7 @@ function send() { return os.alert({ type: 'error', title: i18n.ts.error, - text: String(err), + text: printError(err), }); }).finally(() => { sending.value = false;