error attached directly to constructor instead of returned