Commit 5c286179 authored by David Renshaw's avatar David Renshaw

update method names in error messages

parent cfd813e4
......@@ -1219,7 +1219,7 @@ struct WireHelpers {
SegmentBuilder* origSegment, CapTableBuilder* capTable, ElementSize elementSize,
const word* defaultValue, BuilderArena* orphanArena = nullptr)) {
KJ_DREQUIRE(elementSize != ElementSize::INLINE_COMPOSITE,
"Use getStructList{Element,Field}() for structs.");
"Use getWritableStructListPointer() for struct lists.");
if (origRef->isNull()) {
useDefault:
......@@ -1242,7 +1242,7 @@ struct WireHelpers {
word* ptr = followFars(ref, origRefTarget, segment);
KJ_REQUIRE(ref->kind() == WirePointer::LIST,
"Called getList{Field,Element}() but existing pointer is not a list.") {
"Called getWritableListPointer() but existing pointer is not a list.") {
goto useDefault;
}
......@@ -1362,7 +1362,7 @@ struct WireHelpers {
word* ptr = followFars(ref, origRefTarget, segment);
KJ_REQUIRE(ref->kind() == WirePointer::LIST,
"Called getList{Field,Element}() but existing pointer is not a list.") {
"Called getWritableListPointerAnySize() but existing pointer is not a list.") {
goto useDefault;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment