File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,22 @@ func _on_set_user_button_pressed() -> void:
8585
8686
8787func _on_gen_script_error_pressed () -> void :
88+ _generate_script_error ()
89+
90+
91+ func _on_gen_native_error_pressed () -> void :
92+ _generate_native_error ()
93+
94+
95+ func _generate_script_error () -> void :
8896 DemoOutput .print_info ("Generating GDScript error..." )
8997 # The following line should generate 2 errors:
9098 # script parse error and failed to load script.
9199 @warning_ignore ("unused_variable" )
92100 var ScriptWithErrors = load ("res://script_with_errors.gd" )
93101
94102
95- func _on_gen_native_error_pressed () -> void :
103+ func _generate_native_error () -> void :
96104 DemoOutput .print_info ("Generating native Godot error (in C++ unit)..." )
97105 load ("res://file_does_not_exist" )
98106
You can’t perform that action at this time.
0 commit comments