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

Function write_error

resources/windows_service/src/main.rs:15–17  ·  view source on GitHub ↗

Write a JSON error object to stderr: `{"error":" "}`

(message: &str)

Source from the content-addressed store, hash-verified

13
14/// Write a JSON error object to stderr: `{"error":"<message>"}`
15fn write_error(message: &str) {
16 eprintln!("{}", serde_json::json!({"error": message}));
17}
18
19rust_i18n::i18n!("locales", fallback = "en-us");
20

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected