From 5ce7a08f0e3dc752799f620669d27e55410e3931 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Fri, 23 Dec 2022 13:35:40 -0800 Subject: [PATCH] `anyhow`: say this example has fewer custom types --- src/error-handling/error-contexts.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/error-handling/error-contexts.md b/src/error-handling/error-contexts.md index 30d64004..3702b3a9 100644 --- a/src/error-handling/error-contexts.md +++ b/src/error-handling/error-contexts.md @@ -1,7 +1,8 @@ # Adding Context to Errors The widely used [anyhow](https://docs.rs/anyhow/) crate can help you add -contextual information to your errors: +contextual information to your errors and allows you to have fewer +custom error types: ```rust,editable,compile_fail use std::{fs, io};