+2 votes

Hi!
I am trying to make background loading by seeing this document
https://docs.godotengine.org/en/stable/tutorials/io/background_loading.html

I want to know what will be body of this function [It is not mentioned there]

show_error()

I have no idea about it.
Thanks!

Godot version v3.2.3-stable_win64
in Engine by (939 points)

1 Answer

+1 vote
Best answer

Nice find and it can be whatever your debugging code is setup to be. A couple of examples below

func show_error(err = ""):
    print(err)

Or

func show_error(err = ""):
    $Label.text = err

Or

func show_error(err = ""):
    push_error(err)

Or completely ignored

func show_error():
    pass
by (5,188 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.