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.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/dice-lang/src/bjc/dicelang/Errors.java b/dice-lang/src/bjc/dicelang/Errors.java
index 729ecc2..8c2b1d5 100644
--- a/dice-lang/src/bjc/dicelang/Errors.java
+++ b/dice-lang/src/bjc/dicelang/Errors.java
@@ -55,6 +55,8 @@ public class Errors {
EK_EVAL_UNDICE,
// Incorrect type to dice group operator
EK_EVAL_INVDGROUP,
+ // Incorrect type to dice creation operator
+ EK_EVAL_INVDCREATE,
// Incorrect type to other dice operator
EK_EVAL_INVDICE,
// Mismatched types to math operator
@@ -176,6 +178,10 @@ public class Errors {
case EK_EVAL_UNDICE:
System.out.printf("\tERROR: Unknown dice operator %s\n", args[0]);
break;
+ case EK_EVAL_INVDCREATE:
+ System.out.printf("\tERROR: Dice creation operator expects integers,"
+ + " not %s\n", args[0]);
+ break;
case EK_EVAL_INVDGROUP:
System.out.printf("\tERROR: Dice group operator expects scalar dice or integers,"
+ " not %s\n", args[0]);