MCPcopy Create free account
hub / github.com/aeroxy/chrome-devtools-cli / print_response

Function print_response

src/lib.rs:752–760  ·  view source on GitHub ↗
(resp: &protocol::DaemonResponse)

Source from the content-addressed store, hash-verified

750}
751
752fn print_response(resp: &protocol::DaemonResponse) {
753 if resp.success {
754 print_output(&resp.output, resp.navigated_to.as_deref(), None);
755 } else {
756 eprintln!("error: {}", resp.error);
757 telemetry::shutdown_logger();
758 std::process::exit(resp.error_code.unwrap_or(1) as i32);
759 }
760}
761
762fn print_result(result: &result::CommandResult) {
763 print_output(

Callers 1

runFunction · 0.85

Calls 2

print_outputFunction · 0.85
shutdown_loggerFunction · 0.85

Tested by

no test coverage detected