Improve error message when misusing exec.