Add backend error logging and increase frontend timeout

This commit is contained in:
2026-02-25 11:49:42 -05:00
parent a9097b82d2
commit 9b9d788ca7
17 changed files with 660 additions and 5 deletions

View File

@ -354,7 +354,12 @@ async function confirmCreateRoute() {
isCreating.value = false
} catch (err: any) {
console.error('Error creating route:', err)
alert('No se pudo crear la ruta: ' + (err.response?.data?.detail || err.message))
const errorMsg = err.response?.data?.detail
|| err.response?.data?.message
|| err.message
|| 'Error desconocido'
const errorDetail = err.response ? `Status: ${err.response.status}` : 'No hubo respuesta del servidor (Network Error)'
alert(`No se pudo crear la ruta: ${errorMsg}\n\nDetalle: ${errorDetail}`)
}
}

View File

@ -209,7 +209,8 @@ async function saveShuttle() {
<h2>Previsualización en Directo</h2>
</div>
<!-- PREVIEW PANEL -->
<div class="preview-container">
<!-- PREVIEW CARD -->
<div class="shuttle-card-preview" :class="{ expanded: true }" :style="{ backgroundImage: `url(${previewImageUrl})` }">
<div class="shuttle-main-info">
<div class="shuttle-header-mini">