Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More meaningful error message for too many selectors

  • Loading branch information...
commit d427dae27d4c5ac7c2f4ffe837833316094c0bd6 1 parent 16f8a27
James Harkins authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lang/LangSource/PyrParseNode.cpp
View
4 lang/LangSource/PyrParseNode.cpp
@@ -4216,7 +4216,7 @@ int conjureSelectorIndex(PyrParseNode *node, PyrBlock* func,
// otherwise add it to the selectors table
if (selectors->size+1 >= 256) {
- error("Literal table too big. Simplify the function.\n");
+ error("Selector table too big: too many classes, method selectors or function definitions in this function. Simplify the function.\n");
post("Next selector was: %s\n", selector->name);
nodePostErrorLine(node);
compileErrors++;
@@ -4267,7 +4267,7 @@ int conjureLiteralSlotIndex(PyrParseNode *node, PyrBlock* func, PyrSlot *slot)
// otherwise add it to the selectors table
if (selectors->size+1 >= 256) {
- error("Literal table too big (>256). Simplify the function.\n");
+ error("Selector table too big: too many classes, method selectors or function definitions in this function. Simplify the function.\n");
post("Next literal was:\n");
dumpPyrSlot(slot);
nodePostErrorLine(node);
Please sign in to comment.
Something went wrong with that request. Please try again.