tweak: improved log message
This commit is contained in:
parent
fd5ac294b3
commit
9fae245381
|
|
@ -211,7 +211,7 @@ func get_cards_by_name_array(names: Array[StringName]) -> Dictionary[String, Arr
|
|||
output["cards"].append(create_from_id(all_ids[card_name]))
|
||||
else:
|
||||
if not card_name in sticky_ids:
|
||||
push_warning("No card or sticky with name '%s'!" % card_name)
|
||||
push_warning("get_cards_by_name_array: Skipping card or sticky with unknown name '%s'!" % card_name)
|
||||
else:
|
||||
output["sticky_notes"].append(create_from_id(all_ids[card_name]))
|
||||
|
||||
|
|
@ -228,7 +228,7 @@ func create_from_id(id:StringName) -> Area2D:
|
|||
note.init(parsed[2], id)
|
||||
return note
|
||||
else:
|
||||
push_error("Attempted to create Card or Sticky from non-existent ID!")
|
||||
push_error("create_from_id: Attempted to create Card or Sticky from non-existent ID!")
|
||||
return null
|
||||
|
||||
func create_dev_board(parent: Control, _rect: Rect2) -> void:
|
||||
|
|
|
|||
Loading…
Reference in New Issue