From d9be9c958ff9f67460d69b2220f90537daef1c4c Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Sun, 25 Oct 2020 11:19:20 +0900
Subject: 投稿失敗したときにエラー表示するように
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/client/components/post-form.vue | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'src/client/components/post-form.vue')

diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue
index ccca4b54a6..0481691be9 100644
--- a/src/client/components/post-form.vue
+++ b/src/client/components/post-form.vue
@@ -562,6 +562,10 @@ export default defineComponent({
 				});
 			}).catch(err => {
 				this.posting = false;
+				os.dialog({
+					type: 'error',
+					text: err.message + '<br>' + (err as any).id,
+				});
 			});
 		},
 
-- 
cgit v1.2.3-freya

