Function edgeErrors