From df8c7db59b463aea2b464552e207e4ae63ea4077 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Tue, 21 Oct 2025 12:17:30 +0900
Subject: (김준회) 결재 조회 구조 변경, 권한없을 떄 권한 변경시 실패사유
 안내하도록 error.message 토스트에 추가
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/permissions/menu-permission-generator.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'components/permissions/menu-permission-generator.tsx')

diff --git a/components/permissions/menu-permission-generator.tsx b/components/permissions/menu-permission-generator.tsx
index 4c8d60d0..0aa05d5a 100644
--- a/components/permissions/menu-permission-generator.tsx
+++ b/components/permissions/menu-permission-generator.tsx
@@ -168,7 +168,7 @@ export function MenuBasedPermissionGenerator() {
       toast.success(`${result.created}개의 권한이 생성되었습니다.`);
       loadAnalysis();
     } catch (error) {
-      toast.error("권한 생성에 실패했습니다.");
+      toast.error(`권한 생성에 실패했습니다. ${error instanceof Error ? error.message : ''}`);
     } finally {
       setGenerating(false);
     }
-- 
cgit v1.2.3

