summaryrefslogtreecommitdiff
path: root/dice-lang/src/bjc/dicelang/Errors.java
diff options
context:
space:
mode:
Diffstat (limited to 'dice-lang/src/bjc/dicelang/Errors.java')
-rw-r--r--dice-lang/src/bjc/dicelang/Errors.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/dice-lang/src/bjc/dicelang/Errors.java b/dice-lang/src/bjc/dicelang/Errors.java
index c4ecfc4..e066292 100644
--- a/dice-lang/src/bjc/dicelang/Errors.java
+++ b/dice-lang/src/bjc/dicelang/Errors.java
@@ -61,6 +61,10 @@ public class Errors {
EK_EVAL_INVDICE,
// Mismatched types to math operator
EK_EVAL_MISMATH,
+ // Incorrect type to string operator
+ EK_EVAL_INVSTRING,
+ // Unknown string operator
+ EK_EVAL_UNSTRING,
// Parser Error
// Group closing where there couldn't be an opener
@@ -181,7 +185,7 @@ public class Errors {
System.out.printf("\tERROR: Unknown node in evaluator: %s\n", args[0]);
break;
case EK_EVAL_INVBIN:
- System.out.printf("\tERROR: Binary operators take 2 operand, not %s\n"
+ System.out.printf("\tERROR: Binary operators take 2 operands, not %s\n"
+ "\tProblem node is %s\n", args[0], args[1]);
break;
case EK_EVAL_UNBIN:
@@ -219,6 +223,12 @@ public class Errors {
case EK_EVAL_MISMATH:
System.out.printf("\tERROR: Math operators expect two operands of the same type\n");
break;
+ case EK_EVAL_INVSTRING:
+ System.out.printf("\tERROR: Incorrect type %s to string operator\n", args[0]);
+ break;
+ case EK_EVAL_UNSTRING:
+ System.out.printf("\tERROR: Unknown string operator %s\n", args[0]);
+ break;
case EK_PARSE_NOCLOSE:
System.out.printf("\tERROR: Group closing with no possible group opener\n");
break;