aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-06-30 18:32:56 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-06-30 18:32:56 +0000
commitf02872df11af51531363a953d56ccb98bef79536 (patch)
tree841644095b47d189dd145c89f8ecb0b7adf40f8a
parent87594e268f4816aad20e8d40424979898b11787f (diff)
added more intelligent verbosity
svn path=/trunk/externals/zexy/; revision=3273
-rw-r--r--src/index.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c
index b219883..99ce4ae 100644
--- a/src/index.c
+++ b/src/index.c
@@ -148,7 +148,7 @@ static void index_add(t_index *x, t_symbol *s, t_float f)
if(newentry>0){
newentry--;
if(x->names[newentry]){ /* it is already taken! */
- error("index :: couldn't add element at position %d (already taken)", newentry+1);
+ error("index :: couldn't add element '%s' at position %d (already taken)", s->s_name, newentry+1);
outlet_float(x->x_obj.ob_outlet, -1.f);
return;
}
@@ -164,7 +164,7 @@ static void index_add(t_index *x, t_symbol *s, t_float f)
} else error("index :: couldn't find any place for new entry");
} else error("index :: max number of elements (%d) reached !", x->maxentries);
- } else post("index :: element already exists");
+ } else post("index :: element '%s' already exists", s->s_name);
/* couldn't add the symbol to our index table */
outlet_float(x->x_obj.ob_outlet, -1.f);