From 1416ac46503f26a6cfffa62c2d6b69b217da47b3 Mon Sep 17 00:00:00 2001 From: AndreStork Date: Thu, 22 Jan 2026 08:57:30 +0100 Subject: [PATCH] Aggiunto messaggio a errore connessione server --- GestionePizzeForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GestionePizzeForm.cs b/GestionePizzeForm.cs index c7b6f0f..c03091b 100644 --- a/GestionePizzeForm.cs +++ b/GestionePizzeForm.cs @@ -207,9 +207,9 @@ namespace PizzaExpress_Client var pizze = await _httpClient.GetFromJsonAsync>("api/pizze"); _tutteLePizze = pizze ?? new List(); } - catch + catch(Exception ex) { - MessageBox.Show("Errore nella connessione al server."); + MessageBox.Show("Errore nella connessione al server.\n" + ex.Message); _tutteLePizze = new List(); }