add non-boolean errors fn