Skip to content

Commit 6c82cd7

Browse files
committed
Change the default message
1 parent 4a17bf1 commit 6c82cd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

json_config_file/json_properties/json_property.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static func _error_as_text(error: Dictionary) -> String:
202202
Errors.IMAGE_WRONG_SIZE:
203203
error_as_text = MESSAGE_IMAGE_WRONG_SIZE % [error.expected_size[0], error.expected_size[1]]
204204
_:
205-
error_as_text = "This error message is not defined"
205+
error_as_text = error.error
206206
else:
207207
error_as_text = "This error message is not defined"
208208

@@ -227,7 +227,7 @@ static func _warning_as_text(warning: Dictionary) -> String:
227227
Warnings.IMAGE_WRONG_SIZE:
228228
warning_as_text = MESSAGE_IMAGE_WRONG_SIZE % [warning.expected_size[0], warning.expected_size[1]]
229229
_:
230-
warning_as_text = "This warning message is not defined"
230+
warning_as_text = warning.warning
231231
else:
232232
warning_as_text = "This warning message is not defined"
233233

0 commit comments

Comments
 (0)