Updating: fixing errmsg reporting