fd17849
Improve error granularity slightly in automatic partitioning. Also remove unused PartitioningWarning exception.