From f3784fa99f719cc84061b0792e1b27c784e5a675 Mon Sep 17 00:00:00 2001 From: Bin Date: Mon, 30 Mar 2026 11:18:38 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20=EC=98=A4?= =?UTF-8?q?=ED=83=80=20=EC=88=98=EC=A0=95,=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=B6=9C=EB=A0=A5=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RocketCall/View/Mission/List/MissionViewController.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/RocketCall/View/Mission/List/MissionViewController.swift b/RocketCall/View/Mission/List/MissionViewController.swift index f067f37..3722ca4 100644 --- a/RocketCall/View/Mission/List/MissionViewController.swift +++ b/RocketCall/View/Mission/List/MissionViewController.swift @@ -181,7 +181,11 @@ extension MissionViewController { try self.coreDataManager.deleteMissionEntity(of: mission.id) self.initialLoadSubject.onNext(()) } catch { - self.showErrorAlert(error: .saveFailed) + if let coreDataError = error as? CoreDataManager.CoreDataError { + self.showErrorAlert(error: coreDataError) + } else { + self.showErrorAlert(error: .saveFailed) + } } }) .disposed(by: disposeBag) @@ -201,7 +205,7 @@ extension MissionViewController { case .customMission(let mission) = item else { return nil } return UIContextMenuConfiguration(identifier: nil, previewProvider: nil) { _ in - let delete = UIAction(title: "삭제", image: UIImage(systemName: "trah.fill"), attributes: .destructive) { [weak self] _ in + let delete = UIAction(title: "삭제", image: UIImage(systemName: "trash.fill"), attributes: .destructive) { [weak self] _ in self?.deleteMissionSubject.onNext(mission) } return UIMenu(title: "",children: [delete])