mirror of
https://github.com/haraldh/chainerror.git
synced 2025-01-31 00:56:41 +01:00
13 lines
264 B
Markdown
13 lines
264 B
Markdown
# More information
|
|
|
|
To give more context to the error, you want to use `format!`
|
|
to extend the information in the context string.
|
|
|
|
~~~rust
|
|
{{#include ../examples/tutorial4.rs}}
|
|
# #[allow(dead_code)]
|
|
# mod chainerror {
|
|
{{#rustdoc_include ../src/lib.rs:-1}}
|
|
# }
|
|
~~~
|