Moved CubeError to cube_utils