Fix debugging of string-match-p errors