better remove this line, so all err go to errMsg.