fn main() {
let err = build_error();
println!("{err}");
}
fn build_error() -> human_errors::Error {
human_errors::wrap_user(
human_errors::wrap_system(
std::io::Error::new(
std::io::ErrorKind::PermissionDenied,
"os error 13: permission denied",
),
"Failed to read the configuration file at /etc/demo/config.yml.",
&["Ensure the application has permission to read the file."],
),
"We could not load your configuration.",
&["Check that the --config option points to a readable file."],
)
}