Commit 6fa50aef authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

Merge pull request #457 from dwrensha/update-old-error-messages

update method names in error messages
parents f34b88ff 5c286179
...@@ -1219,7 +1219,7 @@ struct WireHelpers { ...@@ -1219,7 +1219,7 @@ struct WireHelpers {
SegmentBuilder* origSegment, CapTableBuilder* capTable, ElementSize elementSize, SegmentBuilder* origSegment, CapTableBuilder* capTable, ElementSize elementSize,
const word* defaultValue, BuilderArena* orphanArena = nullptr)) { const word* defaultValue, BuilderArena* orphanArena = nullptr)) {
KJ_DREQUIRE(elementSize != ElementSize::INLINE_COMPOSITE, KJ_DREQUIRE(elementSize != ElementSize::INLINE_COMPOSITE,
"Use getStructList{Element,Field}() for structs."); "Use getWritableStructListPointer() for struct lists.");
if (origRef->isNull()) { if (origRef->isNull()) {
useDefault: useDefault:
...@@ -1242,7 +1242,7 @@ struct WireHelpers { ...@@ -1242,7 +1242,7 @@ struct WireHelpers {
word* ptr = followFars(ref, origRefTarget, segment); word* ptr = followFars(ref, origRefTarget, segment);
KJ_REQUIRE(ref->kind() == WirePointer::LIST, 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; goto useDefault;
} }
...@@ -1362,7 +1362,7 @@ struct WireHelpers { ...@@ -1362,7 +1362,7 @@ struct WireHelpers {
word* ptr = followFars(ref, origRefTarget, segment); word* ptr = followFars(ref, origRefTarget, segment);
KJ_REQUIRE(ref->kind() == WirePointer::LIST, 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; 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