Skip to content
This repository was archived by the owner on Dec 29, 2024. It is now read-only.

Commit 8d08147

Browse files
authored
Fix demo bug when get_message raises an error (#153)
1 parent ab2318d commit 8d08147

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func _ready() -> void:
109109
110110
var val = lua.pull_variant("get_message")
111111
if val is LuaError:
112-
print("ERROR %d: %s" % [err.type, err.message])
112+
print("ERROR %d: %s" % [val.type, val.message])
113113
return
114114
115115
var message = val.call([])

project/demo/HelloLua.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ func _ready():
2727

2828
var ret = lua.call_function("get_message", [])
2929
if ret is LuaError:
30-
print("ERROR %d: %s" % [err.type, err.message])
30+
print("ERROR %d: %s" % [ret.type, ret.message])
3131
return
3232
print(ret)

0 commit comments

Comments
 (0)