return errors in a way that works with the new handleGridErrors