MCPcopy Create free account
hub / github.com/PowerShell/DSC / write_error

Function write_error

resources/windows_firewall/src/main.rs:22–24  ·  view source on GitHub ↗
(message: &str)

Source from the content-addressed store, hash-verified

20const EXIT_FIREWALL_ERROR: i32 = 3;
21
22pub(crate) fn write_error(message: &str) {
23 eprintln!("{}", serde_json::json!({ "error": message }));
24}
25
26fn print_json(value: &impl serde::Serialize) {
27 match serde_json::to_string(value) {

Callers 5

print_jsonFunction · 0.70
require_inputFunction · 0.70
mainFunction · 0.70
parse_input_argFunction · 0.70
dropMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected