From c20b90436b35b8d437eebceb881ab5b078e9944d Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Sun, 9 Mar 2025 09:01:41 +0200 Subject: [PATCH] [test] Check the content of the error message in cant_load_a_nonexistent_chapter --- src/book/book.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/book/book.rs b/src/book/book.rs index c715097284..dbb7c8b091 100644 --- a/src/book/book.rs +++ b/src/book/book.rs @@ -442,6 +442,8 @@ And here is some \ let got = load_chapter(&link, "", Vec::new()); assert!(got.is_err()); + let error_message = got.err().unwrap().to_string(); + assert_eq!(error_message, "Chapter file not found, /foo/bar/baz.md"); } #[test]