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

This commit is contained in:
Duncan Brown
2022-04-09 10:13:09 -04:00
committed by GitHub
parent fda97352a0
commit baee79f5a0
7 changed files with 43 additions and 22 deletions

View File

@@ -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])