summaryrefslogtreecommitdiff
path: root/dice-lang/src/bjc/dicelang/Errors.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2017-03-06 14:51:54 -0500
committerbculkin2442 <bjculkin@mix.wvu.edu>2017-03-06 14:51:54 -0500
commit6b2e58c60a540874e17f7b50e9f892811275f0ff (patch)
treeddae5d21ce5050052bbf0c20f9e00a569d03d8e2 /dice-lang/src/bjc/dicelang/Errors.java
parentb4316456105fc0c25943f8164697284125325e05 (diff)
Error messages
Forgot an error message
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]);