fix bad error message from putTrace functionw