summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/library
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-01-19 12:02:06 -0700
committerBrian <[email protected]>2007-01-19 12:02:06 -0700
commit203946e1f965c76ba54d48c7e8bf06bfcbb65e8f (patch)
tree545b125d6b61af63d83747e920c088ce4dae49b7 /src/mesa/shader/slang/library
parent74b27674a87b592520793527fe1759173c8fdec7 (diff)
print error msg when there's a problem
Diffstat (limited to 'src/mesa/shader/slang/library')
-rw-r--r--src/mesa/shader/slang/library/gc_to_bin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/library/gc_to_bin.c b/src/mesa/shader/slang/library/gc_to_bin.c
index ce9a6541acc..8aef7b54124 100644
--- a/src/mesa/shader/slang/library/gc_to_bin.c
+++ b/src/mesa/shader/slang/library/gc_to_bin.c
@@ -68,11 +68,14 @@ int main (int argc, char *argv[])
grammar id;
id = grammar_load_from_text ((const byte *) slang_shader_syn);
- if (id == 0)
+ if (id == 0) {
+ fprintf(stderr, "Error loading grammar from text\n");
return 1;
+ }
grammar_set_reg8 (id, (const byte *) "parsing_builtin", 1);
grammar_set_reg8 (id, (const byte *) "shader_type", atoi (argv[1]));
if (gc_to_bin (id, argv[2], argv[3])) {
+ fprintf(stderr, "Error in gc_to_bin %s %s\n", argv[2], argv[3]);
grammar_destroy (id);
return 1;
}