{{oldin (日本語)|[[0.9.0 (日本語)|0.9.0]]|090|type=コールバック}}
== 関数 ==
=== 概要 ===
<source lang="lua">
love.releaseerrhand( msg )
</source>
=== 引数 ===
{{param (日本語)|string|msg|エラーメッセージ。}}
=== 返値 ===
ありません。
== 用例 ==
=== 未指定時のデフォルト関数。===
<source lang="lua">
function love.releaseerrhand(msg)
	print("An error has occured, the game has been stopped.")

	if not love.graphics or not love.event or not love.graphics.isCreated() then
		return
	end

	love.graphics.setCanvas()
	love.graphics.setPixelEffect()

	-- 読み込み。
	if love.audio then love.audio.stop() end
	love.graphics.reset()
	love.graphics.setBackgroundColor(89, 157, 220)
	local font = love.graphics.newFont(14)
	love.graphics.setFont(font)

	love.graphics.setColor(255, 255, 255, 255)

	love.graphics.clear()

	local err = {}

	p = string.format("An error has occured that caused %s to stop.\nYou can notify %s about this%s.", love._release.title or "this game", love._release.author or "the author", love._release.url and " at " .. love._release.url or "")

	local function draw()
		love.graphics.clear()
		love.graphics.printf(p, 70, 70, love.graphics.getWidth() - 70)
		love.graphics.present()
	end

	draw()

	local e, a, b, c
	while true do
		e, a, b, c = love.event.wait()

		if e == "quit" then
			return
		end
		if e == "keypressed" and a == "escape" then
			return
		end

		draw()

	end
end
</source>
== 関連 ==
* [[parent::love (日本語)]]
{{#set:Description=開発者の連絡先をプレイヤーへのメッセージとして通知するために用いるコールバック関数です。}}
== そのほかの言語 ==
{{i18n (日本語)|love.releaseerrhand}}