-- Teleport error logging

function Lobby._onTeleportFailure(player, status, message)
	Log.Error.Lobby("Teleport Failed: %s (%s)", player.UserId, message)

	-- Send error back to the server
	local data = {
		type = "FAILURE",
		status = status,
		message = message,
	}
	self.joinEvent:FireServer(data)
end

TeleportService.TeleportInitFailed:Connect(Lobby._onTeleportFailure)