summaryrefslogtreecommitdiffstats
path: root/ir_reader.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-04-21 23:46:22 -0700
committerIan Romanick <[email protected]>2010-04-28 18:14:54 -0700
commit21128c23c69d7dc0b46455591899e4850b2029d8 (patch)
tree7a8f67d6109b83a15854ea3e563e57e62976fb16 /ir_reader.cpp
parent46a223224c55eaed7bf634d901f733098e674457 (diff)
ir_reader: Fix incorrect error message for expressions.
Diffstat (limited to 'ir_reader.cpp')
-rw-r--r--ir_reader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir_reader.cpp b/ir_reader.cpp
index 74fe5faaf67..dc1c84fcac1 100644
--- a/ir_reader.cpp
+++ b/ir_reader.cpp
@@ -600,13 +600,13 @@ read_expression(_mesa_glsl_parse_state *st, s_list *list)
/* Now that we know the operator, check for the right number of operands */
if (ir_expression::get_num_operands(op) == 2) {
if (list_length != 5) {
- ir_read_error(st, list, "expected (expression %s <operand> <operand>)",
- op_sym->value());
+ ir_read_error(st, list, "expected (expression <type> %s <operand> "
+ " <operand>)", op_sym->value());
return NULL;
}
} else {
if (list_length != 4) {
- ir_read_error(st, list, "expected (expression %s <operand>)",
+ ir_read_error(st, list, "expected (expression <type> %s <operand>)",
op_sym->value());
return NULL;
}