{{newin|[[0.9.0]]|090|type=function}}
Retrieves the error string from the thread if it produced an error.
== Function ==
=== Synopsis ===
<source lang="lua">
err = Thread:getError( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|string|err (nil)|The error message, or nil if the Thread has not caused an error.}}
== See Also ==
* [[parent::Thread]]
* [[love.threaderror]]
[[Category:Functions]]
{{#set:Description=Retrieves the error string from the thread.}}
== Other Languages ==
{{i18n|Thread:getError}}