Feature/structured errors landing page (#705)

- structured errors
- landing page
- fix: table header background
This commit is contained in:
euzu
2026-04-06 10:20:52 +02:00
committed by GitHub
parent 1b148d29ae
commit 31a48bc1f3
143 changed files with 1499 additions and 1101 deletions
+4 -4
View File
@@ -23,7 +23,7 @@ pub async fn update_live_stream_metadata(
) -> Result<Option<LiveStreamProperties>, TuliproxError> {
let storage_dir = &app_config.config.load().storage_dir;
let storage_path = get_input_storage_path(&input.name, storage_dir).await
.map_err(|e| shared::error::info_err!("Storage path error: {e}"))?;
.map_err(|e| TuliproxError::Io(format!("Storage path error: {e}")))?;
// Try to load existing info first to preserve data
let mut props: Option<LiveStreamProperties> = None;
@@ -175,16 +175,16 @@ pub async fn update_live_stream_metadata(
if let Some(stream_id) = stream_id_opt {
persist_input_live_info(app_config, &storage_path, XtreamCluster::Live, &input.name, stream_id, &properties)
.await
.map_err(|e| shared::error::info_err!("Persist error: {e}"))?;
.map_err(|e| shared::error::TuliproxError::Io(format!("Persist error: {e}")))?;
}
}
if !success {
if not_found {
return Err(shared::error::info_err!("Probe failed with 404 Not Found for stream {display_id}"));
return Err(shared::error::TuliproxError::Probe(format!("Probe failed with 404 Not Found for stream {display_id}")));
}
// Return error to propagate failure up to task manager/logs
return Err(shared::error::info_err!("Probe failed for stream {display_id}"));
return Err(shared::error::TuliproxError::Probe(format!("Probe failed for stream {display_id}")));
}
Ok(Some(properties))