Fix error swallowing by propagating JSON serialization errors to LLM

This commit is contained in:
Riz Ashraf committed 2026-09-27 09:44:04 +01:00
1 parent 48a1973ea6
commit 01d3c22c57
6 files changed
+59 -59

No files matched your search

+4 -4
View File
@@ -293,8 +293,8 @@ impl McpTool for ListActiveTasksHandler {
status_match && branch_match
})
.collect();
serde_json::to_string(&filtered).unwrap_or_default()
});
serde_json::to_string(&filtered).map_err(|e| e.to_string())
})?;
Ok(data)
}
}
@@ -474,8 +474,8 @@ impl McpTool for ListMilestonesHandler {
}
})
.collect();
serde_json::to_string(&filtered).unwrap_or_default()
});
serde_json::to_string(&filtered).map_err(|e| e.to_string())
})?;
Ok(data)
}
}