return proper error type from maybeChefType