MAP-380: replace error message instead of appending to it.