mirror of
https://github.com/haraldh/chainerror.git
synced 2025-01-30 16:46:42 +01:00
doc: README.md changed text
to console
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
9e03541ac1
commit
c630f84690
|
@ -95,12 +95,12 @@ Debug information is worth it!
|
||||||
`chainerror` supports multiple output formats, which can be selected with the different format specifiers:
|
`chainerror` supports multiple output formats, which can be selected with the different format specifiers:
|
||||||
|
|
||||||
* `{}`: Display
|
* `{}`: Display
|
||||||
```text
|
```console
|
||||||
func1 error calling func2
|
func1 error calling func2
|
||||||
```
|
```
|
||||||
|
|
||||||
* `{:#}`: Alternative Display
|
* `{:#}`: Alternative Display
|
||||||
```text
|
```console
|
||||||
func1 error calling func2
|
func1 error calling func2
|
||||||
Caused by:
|
Caused by:
|
||||||
func2 error: calling func3
|
func2 error: calling func3
|
||||||
|
@ -113,7 +113,7 @@ Caused by:
|
||||||
```
|
```
|
||||||
|
|
||||||
* `{:?}`: Debug
|
* `{:?}`: Debug
|
||||||
```text
|
```console
|
||||||
examples/example.rs:50:13: func1 error calling func2
|
examples/example.rs:50:13: func1 error calling func2
|
||||||
Caused by:
|
Caused by:
|
||||||
examples/example.rs:25:13: Func2Error(func2 error: calling func3)
|
examples/example.rs:25:13: Func2Error(func2 error: calling func3)
|
||||||
|
@ -127,7 +127,7 @@ Kind(NotFound)
|
||||||
```
|
```
|
||||||
|
|
||||||
* `{:#?}`: Alternative Debug
|
* `{:#?}`: Alternative Debug
|
||||||
```text
|
```console
|
||||||
Error<example::Func1Error> {
|
Error<example::Func1Error> {
|
||||||
occurrence: Some(
|
occurrence: Some(
|
||||||
"examples/example.rs:50:13",
|
"examples/example.rs:50:13",
|
||||||
|
|
Loading…
Reference in a new issue