From f8d60193e1c2fb9c0b2da0b046fdf280101c86bc Mon Sep 17 00:00:00 2001 From: John Daniels Date: Thu, 28 Mar 2024 13:35:14 +0000 Subject: [PATCH] Add the shell prompt/command to custom-errors.sh (#519) * Add the shell promt/command to custom-errors.sh * Add prompt/command to errors example --------- Co-authored-by: John --- examples/custom-errors/custom-errors.sh | 3 ++- examples/errors/errors.sh | 1 + public/custom-errors | 3 ++- public/errors | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/custom-errors/custom-errors.sh b/examples/custom-errors/custom-errors.sh index d534739b5..33b7bed5e 100644 --- a/examples/custom-errors/custom-errors.sh +++ b/examples/custom-errors/custom-errors.sh @@ -1,2 +1,3 @@ +$ go run custom-errors.sh 42 -can't work with it \ No newline at end of file +can't work with it diff --git a/examples/errors/errors.sh b/examples/errors/errors.sh index 034c9ed3a..c5f4e545f 100644 --- a/examples/errors/errors.sh +++ b/examples/errors/errors.sh @@ -1,3 +1,4 @@ +$ go run errors.sh f worked: 10 f failed: can't work with 42 Tea is ready! diff --git a/public/custom-errors b/public/custom-errors index b47ba63d4..9bc7fd193 100644 --- a/public/custom-errors +++ b/public/custom-errors @@ -158,7 +158,8 @@ returns false.

-
42
+          
$ go run custom-errors.sh
+42
 can't work with it
diff --git a/public/errors b/public/errors index f0240036e..ddc4dab67 100644 --- a/public/errors +++ b/public/errors @@ -237,7 +237,8 @@ errors in a chain of errors.

-
f worked: 10
+          
$ go run errors.sh
+f worked: 10
 f failed: can't work with 42
 Tea is ready!
 Tea is ready!