def METHOD_NAME(error):
	'''Returns the message to show for an error
	@param error: error object or string
	@returns: 2-tuple of: message string and a boolean
	whether a traceback should be shown or not
	'''
	if isinstance(error, Error):
		# An "expected" error
		return error.msg, False
	elif isinstance(error, EnvironmentError):
		# Normal error, e.g. OSError or IOError
		msg = error.strerror
		if hasattr(error, 'filename') and error.filename:
			msg += ': ' + error.filename
		return msg, False
	else:
		# An unexpected error, all other Exception's
		msg = _('Looks like you found a bug') # T: generic error dialog
		return msg, True