src/data-processor-chunk.js
function addError(data, error) {
	if (!data.error) {
		data.error = [];
	}
	error.lineNumber = data.lineNumber;
	data.error.push(error);
}
function addError(data, error) {
	if (!data.error) {
		data.error = [];
	}
	error.lineNumber = data.lineNumber;
	data.error.push(error);
}
function addError ( data , error ) { if ( ! data . error ) { data . error = [ ] ; } error . lineNumber = data . lineNumber ; data . error . push ( error ) ; }
Adds an error to the stream data
@param data The current stream data
@param error The error to be added.
Adds an error to the stream data