feat: reports source of ESC errors when possible (#568)

This commit is contained in:
Duncan Brown authored and GitHub committed 2022-04-09 16:13:09 +02:00
1 parent fda97352a0
commit baee79f5a0
7 files changed
+43 -22

No files matched your search

@@ -34,7 +34,9 @@ func _on_command_text_entered(p_command_str : String):
var script = escoria.esc_compiler.compile([
"%s%s" % [ESCEvent.PREFIX, _debug.get_command_name()],
p_command_str
])
],
get_class()
)
if script:
escoria.event_manager.queue_event(script.events[escoria.event_manager.EVENT_DEBUG])