From 84e4aaf091a13ff9023ec9e4b49bd0615b641efe Mon Sep 17 00:00:00 2001 From: fujiwara-e Date: Wed, 8 Apr 2026 10:54:09 +0900 Subject: [PATCH] Enhance error message for photo upload failure to include filename --- lib/swimmy/command/photo_upload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/swimmy/command/photo_upload.rb b/lib/swimmy/command/photo_upload.rb index 50d92b9..151e1bc 100644 --- a/lib/swimmy/command/photo_upload.rb +++ b/lib/swimmy/command/photo_upload.rb @@ -39,7 +39,7 @@ class PhotoUploadBot < Base text: "アップロード完了 #{url}", thread_ts: data.thread_ts || data.ts) rescue - message = '写真のアップロードに失敗しました.' + message = "写真のアップロードに失敗しました (ファイル名: #{file.name})." client.say(channel: data.channel, text: message) end end