Add function to get error message

No match.