Unifica finestre errori con testo completo, copia ed esportazione
This commit is contained in:
@@ -10,7 +10,7 @@ import json
|
||||
import sys
|
||||
import tkinter as tk
|
||||
import customtkinter as ctk
|
||||
from tkinter import messagebox
|
||||
import error_dialog as messagebox
|
||||
from typing import Optional, Any, Dict, List, Callable
|
||||
from dataclasses import dataclass
|
||||
from functools import wraps
|
||||
@@ -1061,7 +1061,7 @@ class GestionePickingListFrame(ctk.CTkFrame):
|
||||
_MODULE_LOGGER.exception(f"Errore durante il caricamento dettagli del documento {self.detail_doc}: {ex}")
|
||||
self.spinner.stop()
|
||||
self.busy.hide() # Chiudi l'overlay in caso di errore
|
||||
messagebox.showerror("DB", f"Errore nel caricamento dettagli:\n{ex}")
|
||||
messagebox.showerror("DB", f"Errore nel caricamento dettagli:\n{ex}", exception=ex)
|
||||
|
||||
self.runner.run(
|
||||
_job(),
|
||||
@@ -1127,7 +1127,7 @@ class GestionePickingListFrame(ctk.CTkFrame):
|
||||
except Exception:
|
||||
pass
|
||||
self._first_loading = False
|
||||
messagebox.showerror("DB", f"Errore nel caricamento:\n{ex}")
|
||||
messagebox.showerror("DB", f"Errore nel caricamento:\n{ex}", exception=ex)
|
||||
|
||||
self.runner.run(
|
||||
_job(),
|
||||
@@ -1296,7 +1296,7 @@ class GestionePickingListFrame(ctk.CTkFrame):
|
||||
target=documento,
|
||||
details={"error": str(ex)},
|
||||
)
|
||||
messagebox.showerror("Prenota", f"Errore:\n{ex}")
|
||||
messagebox.showerror("Prenota", f"Errore:\n{ex}", exception=ex)
|
||||
|
||||
self.runner.run(
|
||||
_job(),
|
||||
@@ -1374,7 +1374,7 @@ class GestionePickingListFrame(ctk.CTkFrame):
|
||||
target=documento,
|
||||
details={"error": str(ex)},
|
||||
)
|
||||
messagebox.showerror("S-prenota", f"Errore:\n{ex}")
|
||||
messagebox.showerror("S-prenota", f"Errore:\n{ex}", exception=ex)
|
||||
|
||||
self.runner.run(
|
||||
_job(),
|
||||
|
||||
Reference in New Issue
Block a user