net: correct error message

This commit is contained in:
Thomas Schoebel-Theuer 2019-07-12 11:39:46 +02:00 committed by Thomas Schoebel-Theuer
parent ffcc691efd
commit 8a86c08750

View File

@ -878,14 +878,14 @@ int _make_recver_cache(struct mars_desc_cache *mc, const struct meta *meta, int
goto found;
}
}
if (unlikely(!count)) {
MARS_ERR("field '%s' is missing\n", meta->field_name);
goto done;
}
MARS_WRN("field %2d '%s' is missing\n", count, meta->field_name);
found:;
}
done:
if (unlikely(!count)) {
MARS_ERR("bad protocol: ALL fields are missing\n");
}
brick_string_free(tmp);
return count;
}