import textwrap


def wrap_error(msg):
	"""
	Wraps an error message such that it will get displayed properly.
	
	@param msg: The error to display.
	
	@return: A string containing the formatted message.
	"""
	
	return '\n  ' + '\n  '.join(textwrap.wrap(msg, 77))