Browse Source

added error printing

Elusive Porpoise 2 years ago
parent
commit
223ae61c89
1 changed files with 4 additions and 0 deletions
  1. 4 0
      examples/demo/demo.odin

+ 4 - 0
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
 	}