Changed function name

Changed name of streamError function to dispatchError.