From bb0520adcbd1e88eccd5aeec367260571e7024ee Mon Sep 17 00:00:00 2001 From: Julian Murgia Date: Thu, 18 Nov 2021 21:21:01 +0100 Subject: [PATCH] Re-add removed assert(false) (#448) --- addons/escoria-core/game/core-scripts/log/esc_logger.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/escoria-core/game/core-scripts/log/esc_logger.gd b/addons/escoria-core/game/core-scripts/log/esc_logger.gd index 261bfeb3..f8a6a915 100644 --- a/addons/escoria-core/game/core-scripts/log/esc_logger.gd +++ b/addons/escoria-core/game/core-scripts/log/esc_logger.gd @@ -120,7 +120,8 @@ func warning(string: String, args = []): escoria.main.current_scene.game.show_crash_popup( [log_file.get_path_absolute()] ) - + assert(false) + # Log an error message # @@ -154,6 +155,7 @@ func error(string: String, args = [], do_savegame: bool = true): _log(message, true) escoria.main.current_scene.game.show_crash_popup(files_to_send) + assert(false) # Log a warning message about an ESC file