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(); }