This commit is contained in:
xintaofei
2026-04-01 11:18:51 +08:00
parent 245151dda2
commit c25e4062b9

View File

@@ -449,7 +449,9 @@ export function CommitWorkspace({
toast.success(t("toasts.addedToVcs"), { description: file }) toast.success(t("toasts.addedToVcs"), { description: file })
void loadStatus() void loadStatus()
} catch (err) { } catch (err) {
toast.error(t("toasts.addToVcsFailed"), { description: toErrorMessage(err) }) toast.error(t("toasts.addToVcsFailed"), {
description: toErrorMessage(err),
})
} }
}, },
[folderPath, loadStatus, t] [folderPath, loadStatus, t]
@@ -617,7 +619,9 @@ export function CommitWorkspace({
toast.success(t("toasts.addedToVcs"), { description: label }) toast.success(t("toasts.addedToVcs"), { description: label })
void loadStatus() void loadStatus()
} catch (err) { } catch (err) {
toast.error(t("toasts.addToVcsFailed"), { description: toErrorMessage(err) }) toast.error(t("toasts.addToVcsFailed"), {
description: toErrorMessage(err),
})
} }
}, },
[folderPath, loadStatus, t] [folderPath, loadStatus, t]