generated from john/python-template
gpt-5.3-codesx review: Phase 5 Release Readiness & Contract Enforcement
Quality Gate / gate (push) Failing after 10s
Quality Gate / gate (push) Failing after 10s
This commit is contained in:
@@ -6,6 +6,7 @@ from nicegui import ui
|
||||
|
||||
from transcription.errors import AppError
|
||||
from transcription.errors import ErrorCategory
|
||||
from transcription.errors import canonical_error_category
|
||||
from transcription.errors import classify_unexpected_error
|
||||
|
||||
|
||||
@@ -31,7 +32,12 @@ def show_error(exc: Exception, *, title: str, operation: str) -> None:
|
||||
ui.label(error.message)
|
||||
ui.label(f"Suggested action: {error.suggestion}").classes("text-weight-medium")
|
||||
ui.label(f"Error reference: {error.error_id}").classes("text-caption")
|
||||
ui.label(f"Category: {error.category.value}").classes("text-caption")
|
||||
ui.label(f"Category: {display_error_category(error)}").classes("text-caption")
|
||||
|
||||
|
||||
def display_error_category(error: AppError) -> str:
|
||||
"""Return the canonical UI-facing category label for an AppError."""
|
||||
return canonical_error_category(error)
|
||||
|
||||
|
||||
def summarize_error(exc: Exception, *, operation: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user