lib/pre-commit/pre-commit-base.js
function writeError(type, file, line, message) {
	if (!messages[type]) {
		messages[type] = [];
	}
	messages[type].push({
		type : type,
		file : file,
		line : line,
		message : message
	});
}
function writeError(type, file, line, message) {
	if (!messages[type]) {
		messages[type] = [];
	}
	messages[type].push({
		type : type,
		file : file,
		line : line,
		message : message
	});
}
Write an error to the errors buffer
@param {String} type
@param {String} file
@param {String} line
@param {String} message