mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-19 07:53:54 +01:00
Better gRPC reflection errors
This commit is contained in:
@@ -134,6 +134,12 @@ async fn cmd_grpc_reflect(
|
||||
let req = get_grpc_request(&window, request_id)
|
||||
.await
|
||||
.map_err(|e| e.to_string())?;
|
||||
|
||||
// Short-circuit if no URL is set
|
||||
if req.url.is_empty() {
|
||||
return Ok(Vec::new());
|
||||
}
|
||||
|
||||
let uri = safe_uri(req.url.as_str());
|
||||
if proto_files.len() > 0 {
|
||||
grpc_handle
|
||||
|
||||
Reference in New Issue
Block a user