Skip to content

Commit 8145e4d

Browse files
committed
Add node example errors to crate documentation
1 parent 57a248a commit 8145e4d

6 files changed

+16
-31
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,20 @@ message.
1515

1616
Without `console_error_panic_hook` you just get something like *RuntimeError: Unreachable executed*
1717

18+
Browser:
1819
![Console without panic hook](without_panic_hook.png)
1920

21+
Node:
22+
![Node console without panic hook](without_panic_hook_node.png)
23+
2024
With this panic hook installed you will see the panic message
2125

26+
Browser:
2227
![Console with panic hook set up](with_panic_hook.png)
2328

29+
Node:
30+
![Node console with panic hook set up](with_panic_hook_node.png)
31+
2432
### Usage
2533

2634
There are two ways to install this panic hook.

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,20 @@
1515
//!
1616
//! Without `console_error_panic_hook` you just get something like *RuntimeError: Unreachable executed*
1717
//!
18+
//! Browser:
1819
//! ![Console without panic hook](without_panic_hook.png)
1920
//!
21+
//! Node:
22+
//! ![Node console without panic hook](without_panic_hook_node.png)
23+
//!
2024
//! With this panic hook installed you will see the panic message
2125
//!
26+
//! Browser:
2227
//! ![Console with panic hook set up](with_panic_hook.png)
2328
//!
29+
//! Node:
30+
//! ![Node console with panic hook set up](with_panic_hook_node.png)
31+
//!
2432
//! ## Usage
2533
//!
2634
//! There are two ways to install this panic hook.

with_panic_hook_node.png

209 KB
Loading

with_panic_hook_node.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

without_panic_hook_node.png

192 KB
Loading

without_panic_hook_node.txt

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)