diff --git a/examples/panic/panic.sh b/examples/panic/panic.sh index a851be9..c5a7e1d 100644 --- a/examples/panic/panic.sh +++ b/examples/panic/panic.sh @@ -1,6 +1,11 @@ # Running this program will cause it to panic, print # an error message and goroutine traces, and exit with # a non-zero status. + +# When first panic in `main` fires, the program exits +# without reaching the rest of the code. If you'd like +# to see the program try to create a temp file, comment +# the first panic out. $ go run panic.go panic: a problem diff --git a/public/panic b/public/panic index 2da4cff..cb3ce87 100644 --- a/public/panic +++ b/public/panic @@ -117,6 +117,20 @@ returns an error value that we don’t know how to an error message and goroutine traces, and exit with a non-zero status.
+ +When first panic in main
fires, the program exits
+without reaching the rest of the code. If you’d like
+to see the program try to create a temp file, comment
+the first panic out.