[#2216] incorrect test of error status