treebuilder: don't overwrite the error message