fix(back-end): file error handling
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
<p class="subtitle">{{ 'CALC.SUBTITLE' | translate }}</p>
|
||||
|
||||
@if (error() === 'VIRUS_DETECTED') {
|
||||
<app-alert type="error">{{ 'CALC.ERROR_VIRUS' | translate }}</app-alert>
|
||||
<app-alert type="error">{{ 'CALC.ERROR_VIRUS_DETECTED' | translate }}</app-alert>
|
||||
} @else if (error()) {
|
||||
<app-alert type="error">{{ 'CALC.ERROR_GENERIC' | translate }}</app-alert>
|
||||
<app-alert type="error">{{ 'CALC.ERROR_' + error() | translate }}</app-alert>
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
"ORDER": "Order Now",
|
||||
"CONSULT": "Request Consultation",
|
||||
"ERROR_GENERIC": "An error occurred while calculating the quote.",
|
||||
"ERROR_UPLOAD_FAILED": "Calculation failed",
|
||||
"ERROR_UPLOAD_FAILED": "File upload failed. Please try again.",
|
||||
"ERROR_VIRUS_DETECTED": "File removed (virus detected)",
|
||||
"ERROR_SLICING_FAILED": "Slicing error (complex geometry?)",
|
||||
"NEW_QUOTE": "Calculate New Quote",
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
"ORDER": "Ordina Ora",
|
||||
"CONSULT": "Richiedi Consulenza",
|
||||
"ERROR_GENERIC": "Si è verificato un errore durante il calcolo del preventivo.",
|
||||
"ERROR_UPLOAD_FAILED": "Calcolo fallito",
|
||||
"ERROR_UPLOAD_FAILED": "Caricamento file fallito. Riprova.",
|
||||
"ERROR_VIRUS_DETECTED": "File rimosso (virus rilevato)",
|
||||
"ERROR_SLICING_FAILED": "Errore slicing (geometria complessa?)",
|
||||
"NEW_QUOTE": "Calcola Nuovo Preventivo",
|
||||
|
||||
Reference in New Issue
Block a user