aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ctemplates.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ctemplates.c b/src/ctemplates.c
index ae2ed2a..3209bf4 100644
--- a/src/ctemplates.c
+++ b/src/ctemplates.c
@@ -987,8 +987,10 @@ render_variable(struct TMPL_templates* t, struct TMPL_varlist* varlist){
if(t->cursor->TMPL_tag.var.defaultval != NULL){
bputs(t->out,t->cursor->TMPL_tag.var.defaultval);
}else{
- printf("Variable not bound, and no default\n");
/*Error, not bound and no default*/
+ bputs(t->errout,"Render error: Variable \"");
+ bputs(t->errout,varname);
+ bputs(t->errout,"\" was not bound to a value, and has no default\n");
return -1;
}
}else{