Add backend error logging and increase frontend timeout
This commit is contained in:
@ -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}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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">
|
||||
|
||||
Reference in New Issue
Block a user