Perhaps the error should mention the shapes.