Fix error reporting in genpoi when a bad dimension is specified