CORE-5030 fix double error message