fix: improve error handling for Traefik port updates and enhance port availability checks

This commit is contained in:
Mauricio Siu
2025-12-06 13:58:03 -06:00
parent 1ba24630a8
commit 439fba1f4b
4 changed files with 28 additions and 63 deletions

View File

@@ -105,7 +105,9 @@ export const ManageTraefikPorts = ({ children, serverId }: Props) => {
});
toast.success(t("settings.server.webServer.traefik.portsUpdated"));
setOpen(false);
} catch {}
} catch (error) {
toast.error((error as Error).message || "Error updating Traefik ports");
}
};
return (