add in some traceback info to ValueError (bug 864451)