be barking up the wrong tree vs be in error

be barking up the wrong tree

be in error

How often have the words be barking up the wrong tree and be in error occurred in a corpus of books? (source: Google Ngram Viewer )