handle invalid config

This commit is contained in:
Nordup 2024-10-08 23:26:20 +04:00
parent d8baa21e4e
commit 085fbb4769
4 changed files with 6 additions and 1 deletions

View file

@ -28,6 +28,8 @@ func on_gate_error(code: GateEvents.GateError) -> void:
match code:
GateEvents.GateError.NOT_FOUND:
set_text("Gate not found")
GateEvents.GateError.INVALID_CONFIG:
set_text("Invalid gate config")
GateEvents.GateError.MISSING_PACK, GateEvents.GateError.MISSING_LIBS:
set_text("Cannot load gate resources")
_: