mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 19:45:34 +08:00
a5aa1fd82b
Tauri invoke rejects with the backend's serialized error string, not an Error object, so reading `.message` produced an empty toast for every failed live-config import. Route the rejection through extractErrorMessage with a generic i18n fallback. Also invalidate the providers query on import failure: the import command can have visible side effects before erroring (e.g. GrokBuild ensures its official entry prior to a failing import), and the list must reflect them without a manual refresh.