hi,
just a thought...is errMsg a String type variable?