analyse error with pattern