summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-06-05 17:41:29 +0200
committerPavel Machek <pavel@ucw.cz>2000-06-05 17:41:29 +0200
commit98da26a0a0ee9dd8f7030dcaf6f733adf8b8ad2c (patch)
treed5e21474896330a405d2fbb1cd6d148f0e12b9be /filter
parent49222deffff154ad7c287efd4a6847cc545cda6b (diff)
downloadbird-98da26a0a0ee9dd8f7030dcaf6f733adf8b8ad2c.tar
bird-98da26a0a0ee9dd8f7030dcaf6f733adf8b8ad2c.zip
Better error messages
Diffstat (limited to 'filter')
-rw-r--r--filter/filter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 8dfb337..1e6fa90 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -379,7 +379,7 @@ interpret(struct f_inst *what)
case T_CLIST:
case T_PATH_MASK:
if (sym->class != (SYM_VARIABLE | v2.type))
- runtime( "Variable of bad type" );
+ runtime( "Assigning to variable of incompatible type" );
* (struct f_val *) sym->aux2 = v2;
break;
default:
@@ -401,7 +401,7 @@ interpret(struct f_inst *what)
case '?': /* ? has really strange error value, so we can implement if ... else nicely :-) */
ONEARG;
if (v1.type != T_BOOL)
- runtime( "If requires bool expression" );
+ runtime( "If requires boolean expression" );
if (v1.val.i) {
ARG(res,a2.p);
res.val.i = 0;
@@ -458,7 +458,7 @@ interpret(struct f_inst *what)
case P('a','S'):
ONEARG;
if (what->aux != v1.type)
- runtime( "Attempt to set static attribute to invalid type" );
+ runtime( "Attempt to set static attribute to incompatible type" );
rta_cow();
{
struct rta *rta = (*f_rte)->attrs;
@@ -622,7 +622,7 @@ interpret(struct f_inst *what)
case P('i','M'): /* IP.MASK(val) */
TWOARGS;
if (v2.type != T_INT)
- runtime( "Can not use this type for mask.");
+ runtime( "Can not use non-integer for mask.");
if (v1.type != T_IP)
runtime( "You can mask only IP addresses." );
{