diff options
| author | Elusive Porpoise <95202750+elusivePorpoise@users.noreply.github.com> | 2023-05-19 11:36:16 -0700 |
|---|---|---|
| committer | Elusive Porpoise <95202750+elusivePorpoise@users.noreply.github.com> | 2023-05-19 11:36:53 -0700 |
| commit | 223ae61c89d9dbfc435ffc0bbd3542fd3cc41bb3 (patch) | |
| tree | 1f6675e9ffb372cc5726ce50debdb45e7f87a83e | |
| parent | eff4833840608b93d83a7140d152b80524dfd394 (diff) | |
added error printing
| -rw-r--r-- | examples/demo/demo.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index 2ea69a774..3b9aa73ca 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -2145,6 +2145,10 @@ or_return_operator :: proc() { return -345 * z, zerr } + defer if err != nil { + fmt.println("Error in", #procedure, ":" , err) + } + n = 123 return } |