The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(embed): include method name in InsecureRoute error
Steven Enamakelf5fa3d612a0f
diff --git a/src/embed/error.rs b/src/embed/error.rsindex 6bab800182..6d65dd2c72 100644--- a/src/embed/error.rs+++ b/src/embed/error.rs@@ -91,8 +91,10 @@ pub enum CoreError {/// A [`super::agent::Route`] that names an `http://` (or other non-HTTPS)/// endpoint while carrying an `api_key` is refused before any request is/// sent, so the credential can never ride cleartext on the wire.- #[error("{endpoint}: refusing to send a bearer credential over a non-HTTPS route")]+ #[error("{method}: refusing to send a bearer credential over a non-HTTPS route ({endpoint})")]InsecureRoute {+ /// RPC method the route was attached to.+ method: &'static str,/// The sanitized endpoint (credentials stripped) that was refused.endpoint: String,},@@ -144,7 +146,8 @@ impl CoreError {| CoreError::Unavailable { method }| CoreError::Rpc { method, .. }| CoreError::Encode { method, .. }- | CoreError::Decode { method, .. } => method,+ | CoreError::Decode { method, .. }+ | CoreError::InsecureRoute { method, .. } => method,}}