diff --git a/graph_node_renderer/deck_holder_renderer.gd b/graph_node_renderer/deck_holder_renderer.gd index c88c338..15fff0a 100644 --- a/graph_node_renderer/deck_holder_renderer.gd +++ b/graph_node_renderer/deck_holder_renderer.gd @@ -393,6 +393,9 @@ func open_deck_at_path(path: String) -> void: func open_deck_from_dict(data: Dictionary, path: String) -> void: var deck := DeckHolder.open_deck_from_dict(data, path) + if deck == null: + DeckHolder.logger.toast_error("Error loading deck at path: %s" % path) + return var inst: DeckRendererGraphEdit = DECK_SCENE.instantiate() inst.deck = deck var tab := tab_container.add_content(inst, path.get_file())