From 223ae61c89d9dbfc435ffc0bbd3542fd3cc41bb3 Mon Sep 17 00:00:00 2001 From: Elusive Porpoise <95202750+elusivePorpoise@users.noreply.github.com> Date: Fri, 19 May 2023 11:36:16 -0700 Subject: [PATCH] added error printing --- examples/demo/demo.odin | 4 ++++ 1 file changed, 4 insertions(+) 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 }